|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.device.AbstractDeviceContext
public abstract class AbstractDeviceContext
| Field Summary | |
|---|---|
protected HgraphNode |
_node
hgraph impl |
protected ResourceAddressingManager |
addressingManager
|
protected CommunicationManager |
communicationManager
|
protected HgraphNode |
communicationNode
|
protected ConnectionsManager |
connectionsManager
|
protected PRDDevice |
deviceInfo
|
protected IDeviceIO |
deviceIO
|
protected DiscoveryManager |
discoveryManager
|
static boolean |
ENABLE_HGRAPH_DEBUG_OUTPUT
|
protected HgraphManager |
hgraphManager
|
protected HgraphNode |
middlewareManagersNode
|
protected PointToPointManager |
pointToPointManager
|
protected PubSubManager |
pubSubManager
|
protected RemoteConnectManager |
remoteConnectManager
|
protected ResourceManager |
resourceManager
|
protected ResourceMonitor |
resourceMonitor
|
protected RoutingManager |
routingManager
|
protected PalcomScheduler |
scheduler
|
protected PRDServiceList |
serviceList
|
protected LinearMap |
serviceLists
|
protected java.util.ArrayList |
services
|
protected HgraphNode |
servicesNode
|
| 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 |
| Constructor Summary | |
|---|---|
AbstractDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler)
|
|
AbstractDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler,
java.lang.String mark)
|
|
| 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 newServices,
PRDSubList subList)
Adds subList to the service list idenfitied by listLocalSID. |
int |
addNodeChild(IHgraphNode node,
Path callerPath)
Adds a child to the node's private list of children. |
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. |
java.util.Iterator |
getChildIterator()
|
CommunicationManager |
getCommunicationManager()
|
ConnectionsManager |
getConnectionsManager()
|
PRDDevice |
getDeviceInfo()
|
IDeviceIO |
getDeviceIO()
|
DiscoveryManager |
getDiscoveryManager()
|
FuncFunc |
getFuncFunc()
|
HgraphManager |
getHgraphManager()
|
abstract java.util.ArrayList |
getMediaManagers()
|
java.lang.String |
getName()
|
java.lang.String |
getNewInstanceNumber(ServiceID serviceID)
|
LocalSID |
getNewLocalSID()
|
java.lang.String |
getNewLocalSIDString()
|
java.lang.String |
getNodeName()
hgraph impl below |
IHgraphNode |
getNodeParent()
|
Path |
getPath()
|
PointToPointManager |
getPointToPointManager()
|
PubSubManager |
getPubSubManager()
|
RemoteConnectManager |
getRemoteConnectManager()
|
ResourceAddressingManager |
getResourceAddressingManager()
|
ResourceManager |
getResourceManager2()
|
ResourceMonitor |
getResourceMonitor()
|
RoutingManager |
getRoutingManager()
|
PalcomScheduler |
getScheduler()
|
SiblingFunc |
getSiblingFunc()
|
ValueFunc |
getValueFunc()
|
boolean |
hasChildNamed(java.lang.String name)
Checks whether the node has a child with a given name |
boolean |
isAncestorOf(IHgraphNode node)
Checks whether this node is an ancestor of the parameter node. |
int |
removeNodeChild(java.lang.String name,
Path callerPath)
Removes a child based on its name. |
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)
|
int |
setNodeName(java.lang.String name,
Path callerPath)
Sets the name of the node. |
int |
setNodeParent(IHgraphNode newParent,
Path callerPath)
Sets the parent of the HgraphNode. |
java.lang.String |
toXML()
|
java.lang.String |
toXMLFull()
|
java.lang.String |
toXMLFullRecursively()
|
java.lang.String |
toXMLRecursively()
|
void |
updatePath()
Updates the path of the H-Graph node along with its offspring recursively. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean ENABLE_HGRAPH_DEBUG_OUTPUT
protected PRDDevice deviceInfo
protected java.util.ArrayList services
protected LinearMap serviceLists
protected PRDServiceList serviceList
protected PalcomScheduler scheduler
protected CommunicationManager communicationManager
protected PointToPointManager pointToPointManager
protected ConnectionsManager connectionsManager
protected PubSubManager pubSubManager
protected RoutingManager routingManager
protected DiscoveryManager discoveryManager
protected ResourceManager resourceManager
protected ResourceAddressingManager addressingManager
protected ResourceMonitor resourceMonitor
protected RemoteConnectManager remoteConnectManager
protected HgraphManager hgraphManager
protected IDeviceIO deviceIO
protected HgraphNode _node
protected HgraphNode servicesNode
protected HgraphNode communicationNode
protected HgraphNode middlewareManagersNode
| Constructor Detail |
|---|
public AbstractDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler)
public AbstractDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler,
java.lang.String mark)
| Method Detail |
|---|
public PRDDevice getDeviceInfo()
getDeviceInfo in interface DeviceContextpublic java.util.Iterator serviceIterator()
serviceIterator in interface DeviceContextpublic java.lang.String getNewInstanceNumber(ServiceID serviceID)
getNewInstanceNumber in interface DeviceContextpublic java.lang.String getNewLocalSIDString()
getNewLocalSIDString in interface DeviceContextpublic LocalSID getNewLocalSID()
getNewLocalSID in interface DeviceContextpublic void setHeartBeatPeriod(long period)
setHeartBeatPeriod in interface DeviceContextpublic void setName(java.lang.String name)
setName in interface DeviceContextpublic java.lang.String getName()
getName in interface DeviceContextpublic void setDeviceIO(IDeviceIO io)
setDeviceIO in interface DeviceContextpublic IDeviceIO getDeviceIO()
getDeviceIO in interface DeviceContextpublic void addServiceAtDeviceLevel(Service service)
addServiceAtDeviceLevel in interface DeviceContext
public void addServiceToList(Service service,
LocalSID listLocalSID)
addServiceToList in interface DeviceContext
public void addListOfServicesToList(LocalSID listLocalSID,
java.util.ArrayList newServices,
PRDSubList subList)
addListOfServicesToList in interface DeviceContext
public void addListOfServicesAtDeviceLevel(java.util.ArrayList newServices,
PRDSubList subList)
addListOfServicesAtDeviceLevel in interface DeviceContextpublic void removeService(Service service)
removeService in interface DeviceContextpublic void removeSubList(PRDSubList subList)
removeSubList in interface DeviceContextremoveService(Service)public PalcomScheduler getScheduler()
getScheduler in interface DeviceContextpublic abstract java.util.ArrayList getMediaManagers()
getMediaManagers in interface DeviceContextpublic PointToPointManager getPointToPointManager()
getPointToPointManager in interface DeviceContextpublic ConnectionsManager getConnectionsManager()
getConnectionsManager in interface DeviceContextpublic PubSubManager getPubSubManager()
getPubSubManager in interface DeviceContextpublic DiscoveryManager getDiscoveryManager()
getDiscoveryManager in interface DeviceContextpublic ResourceManager getResourceManager2()
getResourceManager2 in interface DeviceContextpublic ResourceAddressingManager getResourceAddressingManager()
getResourceAddressingManager in interface DeviceContextpublic ResourceMonitor getResourceMonitor()
getResourceMonitor in interface DeviceContextpublic RemoteConnectManager getRemoteConnectManager()
getRemoteConnectManager in interface DeviceContextpublic HgraphManager getHgraphManager()
getHgraphManager in interface DeviceContextpublic CommunicationManager getCommunicationManager()
getCommunicationManager in interface DeviceContextpublic RoutingManager getRoutingManager()
getRoutingManager in interface DeviceContextpublic java.lang.String getNodeName()
getNodeName in interface IHgraphNode
public int setNodeName(java.lang.String name,
Path callerPath)
IHgraphNode
setNodeName in interface IHgraphNodename - The new name
public Path getPath()
getPath in interface IHgraphNodepublic void updatePath()
IHgraphNode
updatePath in interface IHgraphNodepublic boolean hasChildNamed(java.lang.String name)
IHgraphNode
hasChildNamed in interface IHgraphNodename - The name to check
public boolean isAncestorOf(IHgraphNode node)
IHgraphNode
isAncestorOf in interface IHgraphNode
public int removeNodeChild(java.lang.String name,
Path callerPath)
IHgraphNode
removeNodeChild in interface IHgraphNodename - The name of the child to be removed
public java.lang.String toXML()
toXML in interface IHgraphNodepublic java.lang.String toXMLFull()
toXMLFull in interface IHgraphNodepublic java.lang.String toXMLRecursively()
toXMLRecursively in interface IHgraphNodepublic java.lang.String toXMLFullRecursively()
toXMLFullRecursively in interface IHgraphNode
public int setNodeParent(IHgraphNode newParent,
Path callerPath)
IHgraphNode
setNodeParent in interface IHgraphNodenewParent - the new parent
public int addNodeChild(IHgraphNode node,
Path callerPath)
IHgraphNode
addNodeChild in interface IHgraphNodenode - The new child to be added
public SiblingFunc getSiblingFunc()
getSiblingFunc in interface IHgraphNodepublic ValueFunc getValueFunc()
getValueFunc in interface IHgraphNodepublic FuncFunc getFuncFunc()
getFuncFunc in interface IHgraphNodepublic IHgraphNode getNodeParent()
getNodeParent in interface IHgraphNodepublic java.util.Iterator getChildIterator()
getChildIterator in interface IHgraphNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||