ants.move.core.models.doc
Class DocModel

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

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

Implementation of DOC model

Version:
1.0 build 2002
See Also:
Serialized Form

Field Summary
protected  java.util.Vector listeners
           
 
Constructor Summary
DocModel()
           
 
Method Summary
 void addDocListener(DocListener docL)
          Add Doc 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 getDocThings()
          Remove Doc listener
 java.lang.String getType()
          Tool type
 void init()
          Initialize model
 void loadThing(java.lang.String thingKey)
          Load doc 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

DocModel

public DocModel()
Method Detail

init

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

addDocListener

public void addDocListener(DocListener docL)
Add Doc Listener
Parameters:
docL - listener

getDocThings

public java.util.Hashtable getDocThings()
Remove Doc 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 doc 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:
DOC

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