Class GarbageBurnerAgent.Burn
- java.lang.Object
-
- jadex.bdiv3.examples.garbagecollector.GarbageBurnerAgent.Burn
-
- Enclosing class:
- GarbageBurnerAgent
public static class GarbageBurnerAgent.Burn extends java.lang.Object
The burn waste goal. For every garbage occurring at its position a new goal is craeted (see binding). The unique tag avoids creating more than one goal per specific piece of garbage.
-
-
Field Summary
Fields Modifier and Type Field Description protected ISpaceObject
garbage
The garbage.protected GarbageBurnerAgent
outer
The agent.
-
Constructor Summary
Constructors Constructor Description Burn(GarbageBurnerAgent outer, ISpaceObject garbage)
Create a new burn goal.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GarbageBurnerAgent.Burn
checkCreate(GarbageBurnerAgent outer, ISpaceObject garbage, ChangeEvent event)
boolean
equals(java.lang.Object obj)
Test if equal to other goal.int
hashCode()
Get the hashcode.
-
-
-
Field Detail
-
outer
protected GarbageBurnerAgent outer
The agent.
-
garbage
protected ISpaceObject garbage
The garbage.
-
-
Constructor Detail
-
Burn
public Burn(GarbageBurnerAgent outer, ISpaceObject garbage)
Create a new burn goal.
-
-
Method Detail
-
checkCreate
public static GarbageBurnerAgent.Burn checkCreate(GarbageBurnerAgent outer, ISpaceObject garbage, ChangeEvent event)
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to other goal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The other object.- Returns:
- True, if equal.
-
-