appl.parallel
Interface ComputingResource

All Superinterfaces:
Remote
All Known Subinterfaces:
SPMDResource
All Known Implementing Classes:
XuluServer

public interface ComputingResource
extends Remote

This is the base class for remote computing resources, which could be displayed e.g. in the ModelControlFrame of the XuluModellingPlatform. It provides very basic functionality like connecting, disconnecting or pinging. Also it provides a flag saying if the resource is available for computation (or e.g. in use).

Author:
Dominik Appl

Method Summary
 boolean connect()
          tries to connect to the resource
 void disconnect()
          disconnects from the resource
 ComputingResourceProperties getResourceInformation()
          Should return Information about the ComputingResource.
 boolean isAvailable()
           
 Object ping(Object... o)
          Can be used to ping the object
 

Method Detail

getResourceInformation

ComputingResourceProperties getResourceInformation()
                                                   throws RemoteException
Should return Information about the ComputingResource. This Information is primary used to display infos to the user.

Throws:
RemoteException

ping

Object ping(Object... o)
            throws RemoteException
Can be used to ping the object

Parameters:
o - the object to ping with
Returns:
the same object
Throws:
RemoteException

connect

boolean connect()
                throws RemoteException
tries to connect to the resource

Returns:
true for success
Throws:
RemoteException

disconnect

void disconnect()
                throws RemoteException
disconnects from the resource

Throws:
RemoteException

isAvailable

boolean isAvailable()
                    throws RemoteException
Returns:
true, if the resource is available for computation (may return false, if the resource is used by another client)
Throws:
RemoteException