|
||||||||||
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.url.UrlModel
Implementation of URL model
Field Summary | |
protected java.util.Vector |
listeners
|
Constructor Summary | |
UrlModel()
|
Method Summary | |
void |
addUrlListener(UrlListener urlL)
Add new listener |
void |
catchThing(java.lang.String thingKey)
Notify to listeners that thing was catched |
void |
deployThing(java.lang.String thingKey)
Notify to listeners that a thing was deployed |
void |
destroy()
Destroy method |
void |
eventArrived(java.util.Hashtable evt)
This method is the standard callback provided for remote events. |
java.lang.String |
getType()
Tool type |
java.util.Hashtable |
getUrlThings()
Return all Url things in place key=thingKey value=UrlThing class |
void |
init()
Initialize model |
void |
loadThing(java.lang.String thingKey)
Loads a new thing |
void |
refreshThing(java.lang.String thingKey)
Notify to listeners to refresh thing |
void |
sendRemoveThing(java.lang.String thingKey)
Send a remove 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 UrlModel()
Method Detail |
public void init()
init
in class ants.core.Thing
public void addUrlListener(UrlListener urlL)
urlL
- Class that implements UrlListenerpublic java.util.Hashtable getUrlThings()
public void catchThing(java.lang.String thingKey)
thingKey
- Key of the thingpublic void refreshThing(java.lang.String thingKey)
thingKey
- Key of the thingpublic void loadThing(java.lang.String thingKey)
thingKey
- Key of the thingpublic void deployThing(java.lang.String thingKey)
thingKey
- Key of the thingpublic void sendRemoveThing(java.lang.String thingKey)
thingKey
- Key of the thingpublic 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 |