ist.palcom.device
Interface DeviceContext

All Superinterfaces:
IHgraphNode
All Known Implementing Classes:
AbstractDeviceContext, AssemblyDeviceContext, ContingencyDeviceContext, IRDeviceContext, PalOverviewBrowserDeviceContext, SwingDisplayUDPDeviceContext, UDPDeviceContext

public interface DeviceContext
extends IHgraphNode

Implemented DeviceContext's keeps name and address information about the device. It also keeps references to the services running on the device, and to managers such as MediaManager and DiscoveryManager. The services can access each other and the managers through the DeviceContext.


Field Summary
 
Fields inherited from interface ist.palcom.hgraph.IHgraphNode
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT
 
Method Summary
 void addListOfServicesAtDeviceLevel(java.util.ArrayList newServices, PRDSubList subList)
          Adds subList to the service list located at the highest level, direct under the device.
 void addListOfServicesToList(LocalSID listLocalSID, java.util.ArrayList services, PRDSubList subList)
          Adds subList to the service list idenfitied by listLocalSID.
 void addServiceAtDeviceLevel(Service service)
          Adds a service to the device.
 void addServiceToList(Service service, LocalSID listLocalSID)
          Adds a service to a service list identified by listLocalSID.
 CommunicationManager getCommunicationManager()
           
 ConnectionsManager getConnectionsManager()
           
 PRDDevice getDeviceInfo()
           
 IDeviceIO getDeviceIO()
           
 DiscoveryManager getDiscoveryManager()
           
 HgraphManager getHgraphManager()
           
 java.util.ArrayList getMediaManagers()
           
 java.lang.String getName()
           
 java.lang.String getNewInstanceNumber(ServiceID serviceID)
           
 LocalSID getNewLocalSID()
           
 java.lang.String getNewLocalSIDString()
           
 PointToPointManager getPointToPointManager()
           
 PubSubManager getPubSubManager()
           
 RemoteConnectManager getRemoteConnectManager()
           
 ResourceAddressingManager getResourceAddressingManager()
           
 ResourceManager getResourceManager2()
           
 ResourceMonitor getResourceMonitor()
           
 RoutingManager getRoutingManager()
           
 PalcomScheduler getScheduler()
           
 void removeService(Service service)
          EXPERIMENTAL!
 void removeSubList(PRDSubList subList)
          Remove subList from announcement information.
 java.util.Iterator serviceIterator()
           
 void setDeviceIO(IDeviceIO io)
           
 void setHeartBeatPeriod(long period)
          Set the time interval between heartbeats.
 void setName(java.lang.String name)
           
 
Methods inherited from interface ist.palcom.hgraph.IHgraphNode
addNodeChild, getChildIterator, getFuncFunc, getNodeName, getNodeParent, getPath, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, removeNodeChild, setNodeName, setNodeParent, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath
 

Method Detail

getDeviceInfo

PRDDevice getDeviceInfo()

serviceIterator

java.util.Iterator serviceIterator()
Returns:
An iterator over the AbstractServices on the device.

setHeartBeatPeriod

void setHeartBeatPeriod(long period)
Set the time interval between heartbeats. This method has to be called in order for the device to send out heartbeats requesting answers, otherwise it will only send out heartbeats in reply to other devices.


getNewInstanceNumber

java.lang.String getNewInstanceNumber(ServiceID serviceID)
Returns:
A, for this serviceID, unique instance number.

getNewLocalSIDString

java.lang.String getNewLocalSIDString()
Returns:
A new unique string.

getNewLocalSID

LocalSID getNewLocalSID()
Returns:
A new unique LocalSID.

setName

void setName(java.lang.String name)

getName

java.lang.String getName()

setDeviceIO

void setDeviceIO(IDeviceIO io)

getDeviceIO

IDeviceIO getDeviceIO()

addServiceAtDeviceLevel

void addServiceAtDeviceLevel(Service service)
Adds a service to the device. Will add info about the service to the info of the device. The DiscoveryManager will be notified if the service is active.


addServiceToList

void addServiceToList(Service service,
                      LocalSID listLocalSID)
Adds a service to a service list identified by listLocalSID. Will add info about the service to the info of the device. The DiscoveryManager will be notified if the service is active. If there are no list with listLocalSID nothing happens.


addListOfServicesToList

void addListOfServicesToList(LocalSID listLocalSID,
                             java.util.ArrayList services,
                             PRDSubList subList)
Adds subList to the service list idenfitied by listLocalSID. ArrayList services is a list containing objects of Service. A PRDServiceList will be created pointing at subList and the services will be added to it. Use a listLocalSID with deviceID and null as servicePartID to get the top level list. If there are no list with listLocalSID nothing happens.


addListOfServicesAtDeviceLevel

void addListOfServicesAtDeviceLevel(java.util.ArrayList newServices,
                                    PRDSubList subList)
Adds subList to the service list located at the highest level, direct under the device. ArrayList services is a list containing objects of Service. A PRDServiceList will be created pointing at subList and the services will be added to it.


removeSubList

void removeSubList(PRDSubList subList)
Remove subList from announcement information. Important! Remove services in the subList with removeService first.

See Also:
removeService(Service)

removeService

void removeService(Service service)
EXPERIMENTAL! Removes a service from the device, and notify the DiscoveryManager.


getScheduler

PalcomScheduler getScheduler()

getMediaManagers

java.util.ArrayList getMediaManagers()

getPointToPointManager

PointToPointManager getPointToPointManager()

getConnectionsManager

ConnectionsManager getConnectionsManager()

getPubSubManager

PubSubManager getPubSubManager()

getDiscoveryManager

DiscoveryManager getDiscoveryManager()

getResourceManager2

ResourceManager getResourceManager2()

getRemoteConnectManager

RemoteConnectManager getRemoteConnectManager()

getCommunicationManager

CommunicationManager getCommunicationManager()

getRoutingManager

RoutingManager getRoutingManager()

getHgraphManager

HgraphManager getHgraphManager()

getResourceAddressingManager

ResourceAddressingManager getResourceAddressingManager()

getResourceMonitor

ResourceMonitor getResourceMonitor()