net.ponder2.mission
Class Interface

java.lang.Object
  extended by net.ponder2.mission.Interface
All Implemented Interfaces:
ManagedObject

public class Interface
extends java.lang.Object
implements ManagedObject

Provides an interface to remote systems. Commands may be added to this managed object which are mapped into commands to other, local, managed objects. Objects may also be exported by this interface in which case they are addressed in the normal manner using pathnames through the interface or by using the command "at:"

Version:
$Id:$
Author:
Kevin Twidle

Method Summary
protected  P2Object obj_operation(P2Object source, java.lang.String op, P2Object... args)
          For internal use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

obj_operation

protected P2Object obj_operation(P2Object source,
                                 java.lang.String op,
                                 P2Object... args)
                          throws Ponder2Exception
For internal use. Maps any command to the correct object and command. Answers with the answer produced by executing the command. Throws an error if the command is not found.

Parameters:
source - the source object that generated the command
op - the operation (command) to be performed
args - the arguments for the command
Returns:
the result of the command
Throws:
Ponder2Exception - if the command is not found


Copyright © 2008 Imperial College. All Rights Reserved.