|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexperiment.entity.Entity
public class Entity
Created by IntelliJ IDEA. User: andy Date: Mar 11, 2010
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,Capability> |
capabilityMap
|
protected boolean |
enabled
|
Entity3d |
entity3d
|
protected boolean |
isNode
|
java.lang.Object |
lock
|
protected ExperimentState |
state
|
Constructor Summary | |
---|---|
Entity(ExperimentState state)
Default Constructor |
Method Summary | |
---|---|
Capability |
getCapability(java.lang.String name)
Return a capability of the entity. |
java.util.Collection<Capability> |
getCapabilitySet()
|
Entity3d |
getEntity3d()
|
ExperimentState |
getState()
|
boolean |
isEnabled()
Find out if the entity is enabled |
boolean |
isNode()
Used tp distinguish between Node and Links. |
void |
setCapability(Capability c)
Update a capability if it's already known else create it. |
void |
setCapability(java.lang.String name,
java.lang.String value)
Update a capability if it's already known else create it. |
void |
setEntity3d(Entity3d entity3d)
Associates an Entity object with its visual representation. |
void |
setMonitored(boolean bool)
A monitored entity is being displayed by the FrontEnd gui. |
void |
setState(ExperimentState state)
Set the entity's state |
void |
setStatus(boolean status)
Set the entity's status. |
void |
updated()
Signals a change in this object since it has last been monitored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<java.lang.String,Capability> capabilityMap
protected volatile boolean enabled
public transient Entity3d entity3d
protected boolean isNode
public final java.lang.Object lock
protected ExperimentState state
Constructor Detail |
---|
public Entity(ExperimentState state)
state
- an experiment state.Method Detail |
---|
public Capability getCapability(java.lang.String name)
name
- the name of the capability
public java.util.Collection<Capability> getCapabilitySet()
public Entity3d getEntity3d()
public ExperimentState getState()
public boolean isEnabled()
public boolean isNode()
public void setCapability(Capability c)
c
- the new capabilitypublic void setCapability(java.lang.String name, java.lang.String value)
name
- the name of the capability that has to be updated.value
- the new value.public void setEntity3d(Entity3d entity3d)
entity3d
- contains the 3d representation of this object.public void setMonitored(boolean bool)
bool
- true for monitored, false for not.public void setState(ExperimentState state)
state
- the entity's statepublic void setStatus(boolean status)
status
- true to enable it and false to disable itpublic void updated()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |