ants.move.core.models.object
Class ObjectModel

java.lang.Object
  |
  +--ants.core.Thing
        |
        +--ants.move.core.models.object.ObjectModel
All Implemented Interfaces:
ants.core.Model, ants.comm.RemoteEventListener, java.io.Serializable

public class ObjectModel
extends ants.core.Thing
implements ants.comm.RemoteEventListener

Implementation of OBJECT model

Version:
1.0 build 2002
See Also:
Serialized Form

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

listeners

protected java.util.Vector listeners
Constructor Detail

ObjectModel

public ObjectModel()
Method Detail

init

public void init()
Initialize model
Overrides:
init in class ants.core.Thing

addObjectListener

public void addObjectListener(ObjectListener objectL)
Add Object Listener
Parameters:
objectL - listener

getObjectThings

public java.util.Hashtable getObjectThings()
Remove Object listener
Returns:
Listener

catchThing

public void catchThing(java.lang.String thingKey)
Catch thing
Parameters:
thingKey - Key

refreshThing

public void refreshThing(java.lang.String thingKey)
Refresh thing state
Parameters:
thingKey - key

loadThing

public void loadThing(java.lang.String thingKey)
Load object thing
Parameters:
thingKey - key

deployThing

public void deployThing(java.lang.String thingKey)
Destroy thing
Parameters:
thingKey - key

sendRemoveThing

public void sendRemoveThing(java.lang.String thingKey)
Send remove thing event
Parameters:
thingKey - key

eventArrived

public void eventArrived(java.util.Hashtable evt)
Description copied from interface: ants.comm.RemoteEventListener
This method is the standard callback provided for remote events.
Specified by:
eventArrived in interface ants.comm.RemoteEventListener
Overrides:
eventArrived in class ants.core.Thing
Following copied from interface: ants.comm.RemoteEventListener
Parameters:
evt - Remote event.

getType

public java.lang.String getType()
Tool type
Overrides:
getType in class ants.core.Thing
Returns:
OBJECT

destroy

public void destroy()
Destroy method
Overrides:
destroy in class ants.core.Thing


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili