api
Interface Computer

All Superinterfaces:
java.rmi.Remote, java.io.Serializable
All Known Implementing Classes:
ComputerImpl

public interface Computer
extends java.rmi.Remote, java.io.Serializable

Computer interface. This defines what the Computer can do. Essentially, all it does is run a Task and return a Result.

Author:
Sean Ford, Nick Childers

Method Summary
 java.lang.Long getComputerId()
           
 java.net.InetSocketAddress getRouter()
           
 java.lang.Object run(Task task)
          Run a task.
 

Method Detail

run

java.lang.Object run(Task task)
                     throws java.rmi.RemoteException
Run a task.

Parameters:
task - The task to run
Returns:
Object result from Task
Throws:
java.rmi.RemoteException

getComputerId

java.lang.Long getComputerId()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getRouter

java.net.InetSocketAddress getRouter()
                                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException