se.liu.ida.critiquer.communication
Class PlanProxy

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by jxl.peermi.PeerRemoteObject
                  extended by se.liu.ida.critiquer.communication.PlanProxy
All Implemented Interfaces:
Serializable, Comparable<ActivityUpdateListener>, Remote, PeerRemote, ActivityUpdateListener, RemotePlan

public class PlanProxy
extends PeerRemoteObject
implements RemotePlan, ActivityUpdateListener

Author:
olale
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
PlanProxy()
           
PlanProxy(int port)
           
 
Method Summary
 void activityCreated(Activity activity)
          Add information to the update cache and dispatch to the update thread.
 void activityRemoved(Activity activity)
          Add information to the update cache and dispatch to the update thread.
 void activityUpdated(Activity activity)
          Add information to the update cache and dispatch to the update thread.
 int compareTo(ActivityUpdateListener o)
          This needs to come late in order for all modifications to have taken place
<T> void
paramAdded(Activity activity, Parameter<T> p)
          Ignored for remote plans
<T> void
paramChanged(Activity activity, Parameter<T> p)
          Add information to the update cache and dispatch to the update thread.
 void registerListener(RemotePlanListener l)
          Register remote listeners
 
Methods inherited from class jxl.peermi.PeerRemoteObject
checkAlive, isAlive, toStub
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jxl.peermi.PeerRemote
checkAlive
 

Constructor Detail

PlanProxy

public PlanProxy()
          throws RemoteException
Throws:
RemoteException

PlanProxy

public PlanProxy(int port)
          throws RemoteException
Parameters:
port -
Throws:
RemoteException
Method Detail

registerListener

public void registerListener(RemotePlanListener l)
                      throws RemoteException
Register remote listeners

Specified by:
registerListener in interface RemotePlan
Throws:
RemoteException
See Also:
RemotePlan.registerListener(se.liu.ida.critiquer.communication.RemotePlanListener)

activityUpdated

public void activityUpdated(Activity activity)
Add information to the update cache and dispatch to the update thread.

Specified by:
activityUpdated in interface ActivityUpdateListener
See Also:
ActivityUpdateListener.activityUpdated(se.liu.ida.critiquer.activities.Activity)

activityRemoved

public void activityRemoved(Activity activity)
Add information to the update cache and dispatch to the update thread.

Specified by:
activityRemoved in interface ActivityUpdateListener
See Also:
ActivityUpdateListener.activityRemoved(se.liu.ida.critiquer.activities.Activity)

activityCreated

public void activityCreated(Activity activity)
Add information to the update cache and dispatch to the update thread.

Specified by:
activityCreated in interface ActivityUpdateListener
See Also:
ActivityUpdateListener.activityCreated(se.liu.ida.critiquer.activities.Activity)

paramAdded

public <T> void paramAdded(Activity activity,
                           Parameter<T> p)
Ignored for remote plans

Specified by:
paramAdded in interface ActivityUpdateListener
See Also:
se.liu.ida.critiquer.activities.ActivityUpdateListener#paramAdded(se.liu.ida.critiquer.activities.Activity, critiquer.activities.parameters.Parameter)

paramChanged

public <T> void paramChanged(Activity activity,
                             Parameter<T> p)
Add information to the update cache and dispatch to the update thread.

Specified by:
paramChanged in interface ActivityUpdateListener
See Also:
se.liu.ida.critiquer.activities.ActivityUpdateListener#paramChanged(se.liu.ida.critiquer.activities.Activity, critiquer.activities.parameters.Parameter)

compareTo

public int compareTo(ActivityUpdateListener o)
This needs to come late in order for all modifications to have taken place

Specified by:
compareTo in interface Comparable<ActivityUpdateListener>
See Also:
java.lang.Comparable#compareTo(T)