vishnu.life
Class AbstractCommand

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by vishnu.life.AbstractCommand
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Command

public abstract class AbstractCommand
extends java.rmi.server.UnicastRemoteObject
implements Command

TODO check thread safe demand for has* methods BEWARE - MORE THAN ONCE RUNNING !!!

Author:
cesare
See Also:
Serialized Form
 

Nested Class Summary
 
Nested classes/interfaces inherited from interface vishnu.life.Command
Command.Notice
 
Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbstractCommand(Session s)
           
 
Method Summary
 boolean hasFinished()
           
 boolean hasStarted()
           
 void perform()
           
 Session session()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface vishnu.life.Command
setStarted
 

Constructor Detail

AbstractCommand

public AbstractCommand(Session s)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

perform

public void perform()
Specified by:
perform in interface Command

hasStarted

public boolean hasStarted()
Specified by:
hasStarted in interface Command

hasFinished

public boolean hasFinished()

session

public Session session()
Specified by:
session in interface Command