net.metanotion.server
Class Session<S extends State>

java.lang.Object
  extended by net.metanotion.server.Session<S>
All Implemented Interfaces:
java.lang.Comparable<Session>, SessionCell<S>, Observer<Session>, Unknown

public final class Session<S extends State>
extends java.lang.Object
implements Observer<Session>, SessionCell<S>


Constructor Summary
Session()
           
Session(S initialState)
           
 
Method Summary
 int compareTo(Session s)
           
 S currentState()
           
 void destroy()
           
 java.lang.Object getInterface(java.lang.Class theInterface)
          Return a proxy/representation of this object that is compatible with the requested interface.
 void nextState(S s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session

public Session()

Session

public Session(S initialState)
Method Detail

currentState

public S currentState()
Specified by:
currentState in interface SessionCell<S extends State>

nextState

public void nextState(S s)
Specified by:
nextState in interface SessionCell<S extends State>

destroy

public void destroy()
Specified by:
destroy in interface SessionCell<S extends State>

getInterface

public java.lang.Object getInterface(java.lang.Class theInterface)
Description copied from interface: Unknown
Return a proxy/representation of this object that is compatible with the requested interface.

Specified by:
getInterface in interface Unknown
Parameters:
theInterface - Java class object representing the interface you would like.
Returns:
an object which is an instance of the interface requested.

compareTo

public int compareTo(Session s)
Specified by:
compareTo in interface java.lang.Comparable<Session>