cia.agent.uca.gui
Class GuiConfImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--cia.agent.uca.gui.GuiConfImpl
- public class GuiConfImpl
- extends java.rmi.server.UnicastRemoteObject
- implements GuiConf
the implementation of the GuiConf interface
it manages the io operations for an Agent
- See Also:
- Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Constructor Summary |
GuiConfImpl(javax.swing.JPanel mainPanel,
java.lang.BeanClassLoader beanloader)
constructs a new GuiConfigurator |
|
Method Summary |
void |
call(java.lang.String objectname,
java.lang.String methodname,
java.lang.Object[] args,
java.lang.String returnname)
calls method 'methodname' from object 'objectname' with arguments 'args' |
java.lang.Object |
copy(java.lang.String objectname)
Copy Object from Applet to Agent |
void |
create(java.lang.String classname,
java.lang.String objectname)
creates a new object |
void |
delete(java.lang.String objectname)
deletes an object |
| 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 |
objectTable
protected java.util.Hashtable objectTable
beanloader
protected java.lang.BeanClassLoader beanloader
GuiConfImpl
public GuiConfImpl(javax.swing.JPanel mainPanel,
java.lang.BeanClassLoader beanloader)
throws java.rmi.RemoteException
- constructs a new GuiConfigurator
- Parameters:
mainPanel - the panel for the agent- See Also:
JPanel
create
public void create(java.lang.String classname,
java.lang.String objectname)
throws java.rmi.RemoteException,
DublicateObjectNameException,
java.lang.InstantiationException,
java.lang.ClassNotFoundException,
java.lang.IllegalAccessException,
java.lang.Exception
- creates a new object
- Specified by:
- create in interface GuiConf
- Parameters:
classname - the of the class (eg. java.awt.Button)objectname - the name of the object
call
public void call(java.lang.String objectname,
java.lang.String methodname,
java.lang.Object[] args,
java.lang.String returnname)
throws java.rmi.RemoteException,
ObjectNotFoundException,
MethodNotFoundException,
MethodExecuteException
- calls method 'methodname' from object 'objectname' with arguments 'args'
- Specified by:
- call in interface GuiConf
- Parameters:
objectname - the name of the object from which the method should be calledmethodname - the name of the methodargs - argument-array. if an gui-object should be referenced the field must be from type Referencenamereturnname - a reference to the return-object of the method
if 'returnname' already exists, the old reference will be deleted
delete
public void delete(java.lang.String objectname)
throws java.rmi.RemoteException,
ObjectNotFoundException
- deletes an object
- Specified by:
- delete in interface GuiConf
- Parameters:
objectname - name of the object that should be deleted
copy
public java.lang.Object copy(java.lang.String objectname)
throws java.rmi.RemoteException,
ObjectNotFoundException
- Copy Object from Applet to Agent
- Specified by:
- copy in interface GuiConf
- Parameters:
objectname - the name of the object that should be copied