Class GarbageBurnerAgent.Burn
- java.lang.Object
-
- jadex.bdiv3.examples.garbagecollector.GarbageBurnerAgent.Burn
-
- Enclosing class:
- GarbageBurnerAgent
public static class GarbageBurnerAgent.Burn extends java.lang.ObjectThe 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 ISpaceObjectgarbageThe garbage.protected GarbageBurnerAgentouterThe 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.BurncheckCreate(GarbageBurnerAgent outer, ISpaceObject garbage, ChangeEvent event)booleanequals(java.lang.Object obj)Test if equal to other goal.inthashCode()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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to other goal.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The other object.- Returns:
- True, if equal.
-
-