|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ants.core.Thing | +--ants.move.core.models.object.ObjectModel
Implementation of OBJECT model
Field Summary | |
protected java.util.Vector |
listeners
|
Constructor Summary | |
ObjectModel()
|
Method Summary | |
void |
addObjectListener(ObjectListener objectL)
Add Object Listener |
void |
catchThing(java.lang.String thingKey)
Catch thing |
void |
deployThing(java.lang.String thingKey)
Destroy thing |
void |
destroy()
Destroy method |
void |
eventArrived(java.util.Hashtable evt)
This method is the standard callback provided for remote events. |
java.util.Hashtable |
getObjectThings()
Remove Object listener |
java.lang.String |
getType()
Tool type |
void |
init()
Initialize model |
void |
loadThing(java.lang.String thingKey)
Load object thing |
void |
refreshThing(java.lang.String thingKey)
Refresh thing state |
void |
sendRemoveThing(java.lang.String thingKey)
Send remove thing event |
Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector listeners
Constructor Detail |
public ObjectModel()
Method Detail |
public void init()
init
in class ants.core.Thing
public void addObjectListener(ObjectListener objectL)
objectL
- listenerpublic java.util.Hashtable getObjectThings()
public void catchThing(java.lang.String thingKey)
thingKey
- Keypublic void refreshThing(java.lang.String thingKey)
thingKey
- keypublic void loadThing(java.lang.String thingKey)
thingKey
- keypublic void deployThing(java.lang.String thingKey)
thingKey
- keypublic void sendRemoveThing(java.lang.String thingKey)
thingKey
- keypublic void eventArrived(java.util.Hashtable evt)
ants.comm.RemoteEventListener
eventArrived
in interface ants.comm.RemoteEventListener
eventArrived
in class ants.core.Thing
ants.comm.RemoteEventListener
evt
- Remote event.public java.lang.String getType()
getType
in class ants.core.Thing
public void destroy()
destroy
in class ants.core.Thing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |