ist.palcom.services.tilessimulator.games.puzzle
Class PuzzleGame

java.lang.Object
  extended by ist.palcom.services.AbstractService
      extended by ist.palcom.services.tilessimulator.games.puzzle.PuzzleGame
All Implemented Interfaces:
Service, IHgraphNode

public class PuzzleGame
extends AbstractService


Nested Class Summary
static class PuzzleGame.GameOption
           
 
Field Summary
static java.lang.String GAME_TOPIC
           
static java.lang.String MIME_TEXT
           
static java.lang.String REMEMBER_CONNECTIVITY
           
 
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
PuzzleGame(DeviceContext context)
           
 
Method Summary
static ServiceProxy createServiceProxy()
           
 ServiceID getServiceID()
           
static java.lang.String hdp(AbstractService a)
           
 void start()
          Start the service.
 void stop()
           
 
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
 

Field Detail

MIME_TEXT

public static final java.lang.String MIME_TEXT
See Also:
Constant Field Values

GAME_TOPIC

public static final java.lang.String GAME_TOPIC
See Also:
Constant Field Values

REMEMBER_CONNECTIVITY

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

PuzzleGame

public PuzzleGame(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.

hdp

public static java.lang.String hdp(AbstractService a)

createServiceProxy

public static ServiceProxy createServiceProxy()

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()
          throws java.io.IOException
Overrides:
stop in class AbstractService
Throws:
java.io.IOException