ants.move.core.models.videoStream2
Class VideoStream2Model

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

public class VideoStream2Model
extends ants.core.Thing
implements ants.core.PropertyChangeListener

Implementation of Video Stream 2 Model.

Version:
1.0 Build 2002
Author:
Oriol Montalā (omontala@tinet.org), Carles Pairot (cpairot@tinet.org), Francesc Piņas (fpd@tinet.org)
See Also:
Serialized Form

Constructor Summary
VideoStream2Model()
          Sole & void constructor.
 
Method Summary
 void addVideoStream2Listener(VideoStream2Listener sList)
          Add VideoStream2 listener
 void destroy()
          Destroy model
 java.lang.String getType()
          Tool type
 java.lang.String getVideoStreamURL()
          get VideoStream2 URL
 void init()
          Initialize Model
 void propertyChange(ants.core.PropertyChangeEvent evt)
          Method triggered in response to a property change.
 void removeVideoStream2Listener(VideoStream2Listener sList)
          Removes VideoStream2 listener
 void setVideoStream(java.lang.String thingKey)
          Set a new VideoStream2 thing in tool
 
Methods inherited from class ants.core.Thing
addPropertyChangeListener, addTokenToProperty, eventArrived, 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
 

Constructor Detail

VideoStream2Model

public VideoStream2Model()
Sole & void constructor.
Method Detail

init

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

addVideoStream2Listener

public void addVideoStream2Listener(VideoStream2Listener sList)
Add VideoStream2 listener
Parameters:
sList - Class that implements VideoStream2Listener interface

removeVideoStream2Listener

public void removeVideoStream2Listener(VideoStream2Listener sList)
Removes VideoStream2 listener
Parameters:
sList - Class that implements VideoStream2Listener interface

setVideoStream

public void setVideoStream(java.lang.String thingKey)
Set a new VideoStream2 thing in tool
Parameters:
thingKey - Key of a new videoStream2 thing

getVideoStreamURL

public java.lang.String getVideoStreamURL()
get VideoStream2 URL
Returns:
String that contains url of videoStream2 source

propertyChange

public void propertyChange(ants.core.PropertyChangeEvent evt)
Description copied from interface: ants.core.PropertyChangeListener
Method triggered in response to a property change.
Specified by:
propertyChange in interface ants.core.PropertyChangeListener
Following copied from interface: ants.core.PropertyChangeListener
Returns:
ants.core.PropertyChangeEvent A PropertyChangeEvent with property change information.

getType

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

destroy

public void destroy()
Destroy model
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