All Packages Class Hierarchy This Package Previous Next Index
Class ants.ManagedObject
java.lang.Object
|
+----ants.Entity
|
+----ants.ManagedObject
- public abstract class ManagedObject
- extends Entity
Shell of all manageable entities.
-
ManagedObject()
- No-argument constructor, for calls through newInstance
-
ManagedObject(Manager, String)
- Normal constructor gives a name and a manager
-
getBoss()
-
-
log(int, String)
- Report an event to our manager if relevant.
-
setBoss(Manager)
-
-
setName(String)
-
ManagedObject
public ManagedObject()
- No-argument constructor, for calls through newInstance
ManagedObject
public ManagedObject(Manager b,
String n)
- Normal constructor gives a name and a manager
getBoss
public Manager getBoss()
setBoss
public void setBoss(Manager b)
setName
public void setName(String n)
- Overrides:
- setName in class Entity
log
protected final void log(int level,
String msg)
- Report an event to our manager if relevant. Declared as final so
it can be inlined and removed at compile-time if logging is off
- Overrides:
- log in class Entity
All Packages Class Hierarchy This Package Previous Next Index