ist.palcom.palbox
Class PalBoxAssemblyManager

java.lang.Object
  extended by ist.palcom.services.AbstractService
      extended by ist.palcom.assembly.manager.AssemblyManager
          extended by ist.palcom.palbox.PalBoxAssemblyManager
All Implemented Interfaces:
IAssemblyManager, Service, IHgraphNode, CommandEventListener

public class PalBoxAssemblyManager
extends AssemblyManager

A specialized Assembly Manager intended to read and write assemblies in the PalBox workspace.


Field Summary
 
Fields inherited from class ist.palcom.services.AbstractService
_node, connectionsMonitor, context, info, siid
 
Fields inherited from interface ist.palcom.assemblies.IAssemblyManager
COMMAND_ADD_DECL, COMMAND_ASSEMBLYINFO, COMMAND_LIST_LOADED, COMMAND_LIST_STORED, COMMAND_LOAD, COMMAND_LOAD_ID, COMMAND_LOADED_ASSEMBLIES, COMMAND_LOADED_COUNT_IN, COMMAND_LOADED_COUNT_OUT, COMMAND_READ_LOADED, COMMAND_REM_DECL, COMMAND_STORE, COMMAND_STORED_ASSEMBLIES, COMMAND_STORED_COUNT_IN, COMMAND_STORED_COUNT_OUT, COMMAND_UNLOAD, COMMAND_UNLOAD_ALL, COMMAND_UPDATE, ENABLE_UPDATE_SERVICE, SERVICE_NAME, URN_SUFFIX
 
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
PalBoxAssemblyManager(AssemblyDeviceContext context, java.lang.String serviceName, java.lang.String root)
           
 
Method Summary
 void commandReceived(CommandEvent e)
           
 void start()
          Start the service.
 void stop()
           
 
Methods inherited from class ist.palcom.assembly.manager.AssemblyManager
checkIfUpdateToRunning, checkIfUpdateToStored, doAddDeclCommand, doCommand, doCommand, doRemDeclCommand, doUpdateCommand, getEditCommandReceiverThread, getLoadedAssemblies, getSelfTestService, getServiceID, loadAssembly, readAssembly, registerContingencyManagerThread, removeAssemblies, stopAssembly, stopAssembly, unregisterContingencyManagerThread
 
Methods inherited from class ist.palcom.services.AbstractService
addNodeChild, addServiceProxyListener, connectionClosed, connectionCreated, 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
 
Methods inherited from interface ist.palcom.assemblies.IAssemblyManager
getServiceProxy
 
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
 

Constructor Detail

PalBoxAssemblyManager

public PalBoxAssemblyManager(AssemblyDeviceContext context,
                             java.lang.String serviceName,
                             java.lang.String root)
                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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.

Specified by:
start in interface IAssemblyManager
Overrides:
start in class AssemblyManager
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Specified by:
stop in interface IAssemblyManager
Overrides:
stop in class AssemblyManager
Throws:
java.io.IOException

commandReceived

public void commandReceived(CommandEvent e)
Specified by:
commandReceived in interface CommandEventListener
Overrides:
commandReceived in class AssemblyManager