ist.palcom.visualization
Class HgraphBrowserService

java.lang.Object
  extended by ist.palcom.services.AbstractService
      extended by ist.palcom.visualization.HgraphBrowserService
All Implemented Interfaces:
Service, IHgraphNode, HgraphBrowserOutCallback

public class HgraphBrowserService
extends AbstractService
implements HgraphBrowserOutCallback


Nested Class Summary
 class HgraphBrowserService.ProxyListener
           
 
Field Summary
static java.lang.String VIZ_MGR_PATH
           
 
Fields inherited from class ist.palcom.services.AbstractService
_node, connectionsMonitor, context, info, siid
 
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
HgraphBrowserService(DeviceContext context)
           
 
Method Summary
protected  void connectionCreated(UnicastConnection connection)
          Notification that a new connection has been established.
 void getNode(java.lang.String path)
           
 ServiceID getServiceID()
           
 Path getVisualizationManagerPath()
           
 void setLiveView(java.lang.String path)
           
 void setVisualizationManagerPath(java.lang.String path)
           
 void start()
          Start the service.
 void startBrowsingHgraph(java.lang.String device, java.lang.String path)
           
 void stop()
           
 void stopBrowsingHgraph()
           
 void unsetLiveView(java.lang.String path)
           
 
Methods inherited from class ist.palcom.services.AbstractService
addNodeChild, addServiceProxyListener, connectionClosed, connectTo, disconnectFrom, getChildIterator, getConnections, getFuncFunc, getNodeName, getNodeParent, getPath, getRemoteServiceProxy, getSelector, getServiceInfo, getServiceInstanceID, getServiceProxy, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, remoteServiceProxyIterator, removeNodeChild, removeServiceProxyListener, sendToAll, setGroupID, setLocalSID, setName, setNodeName, setNodeParent, setServiceInstanceID, setServiceProxy, setStatus, setTopic, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIZ_MGR_PATH

public static final java.lang.String VIZ_MGR_PATH
See Also:
Constant Field Values
Constructor Detail

HgraphBrowserService

public HgraphBrowserService(DeviceContext context)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getServiceID

public ServiceID getServiceID()
Specified by:
getServiceID in class AbstractService
Returns:
the ServiceID of the service.

start

public void start()
           throws java.io.IOException
Description copied from class: AbstractService
Start the service. The LocalSID must be set before calling this method (through a constructor, or through a call to the setLocalSID method). If the service is started already, nothing happens. The DiscoveryManager will be updated with info about the service.

Overrides:
start in class AbstractService
Throws:
java.io.IOException

stop

public void stop()
Overrides:
stop in class AbstractService

setVisualizationManagerPath

public void setVisualizationManagerPath(java.lang.String path)

getVisualizationManagerPath

public Path getVisualizationManagerPath()

connectionCreated

protected void connectionCreated(UnicastConnection connection)
Description copied from class: AbstractService
Notification that a new connection has been established. Service-specific things may be performed by subclasses. The default implementation here is empty.

Overrides:
connectionCreated in class AbstractService

startBrowsingHgraph

public void startBrowsingHgraph(java.lang.String device,
                                java.lang.String path)
Specified by:
startBrowsingHgraph in interface HgraphBrowserOutCallback

stopBrowsingHgraph

public void stopBrowsingHgraph()
Specified by:
stopBrowsingHgraph in interface HgraphBrowserOutCallback

getNode

public void getNode(java.lang.String path)
Specified by:
getNode in interface HgraphBrowserOutCallback

setLiveView

public void setLiveView(java.lang.String path)
Specified by:
setLiveView in interface HgraphBrowserOutCallback

unsetLiveView

public void unsetLiveView(java.lang.String path)
Specified by:
unsetLiveView in interface HgraphBrowserOutCallback