org.opensourcephysics.tools
Class RemoteTool

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.opensourcephysics.tools.RemoteTool
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Tool

public class RemoteTool
extends java.rmi.server.UnicastRemoteObject
implements Tool

This is a Remote Tool implementation for osp data transfers via RMI.

Version:
1.0
Author:
Wolfgang Christian and Doug Brown
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RemoteTool(Tool tool)
          Constructs a RemoteTool.
 
Method Summary
 void send(Job job, Tool replyTo)
          Sends a job to this tool.
 
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
 

Constructor Detail

RemoteTool

public RemoteTool(Tool tool)
           throws java.rmi.RemoteException
Constructs a RemoteTool.

Parameters:
tool - a Tool to handle forwarded jobs
Throws:
java.rmi.RemoteException - if this cannot be constructed
Method Detail

send

public void send(Job job,
                 Tool replyTo)
          throws java.rmi.RemoteException
Sends a job to this tool.

Specified by:
send in interface Tool
Parameters:
job - the job
replyTo - the tool interested in the job (may be null)
Throws:
java.rmi.RemoteException