ants.move.core.models.videoStream
Class VideoStreamModel

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

public class VideoStreamModel
extends ants.core.Thing

Implementation of Video Stream 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
VideoStreamModel()
          Sole & void constructor.
 
Method Summary
 void addVideoStreamListener(VideoStreamListener sList)
          Add VideoStream listener
 void destroy()
          Destroy model
 java.lang.String getType()
          Tool type
 java.lang.String getVideoStreamURL()
          get VideoStream URL
 void init()
          Initialize Model
 void removeVideoStreamListener(VideoStreamListener sList)
          Removes VideoStream listener
 void setVideoStream(java.lang.String thingKey)
          Set a new VideoStream 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

VideoStreamModel

public VideoStreamModel()
Sole & void constructor.
Method Detail

init

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

addVideoStreamListener

public void addVideoStreamListener(VideoStreamListener sList)
Add VideoStream listener
Parameters:
sList - Class that implements VideoStream2Listener interface

removeVideoStreamListener

public void removeVideoStreamListener(VideoStreamListener sList)
Removes VideoStream listener
Parameters:
sList - Class that implements VideoStreamListener interface

setVideoStream

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

getVideoStreamURL

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

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