jade.domain.mobility
Class LoadBehaviour

java.lang.Object
  |
  +--jade.domain.mobility.LoadBehaviour
All Implemented Interfaces:
AgentAction, Concept, ContentElement, Serializable, java.io.Serializable, Term

public class LoadBehaviour
extends java.lang.Object
implements AgentAction

This action represents a request to load a Behaviour whose code is not included in the classpath of the JVM where the agent that is going to execute the behaviour lives.

Author:
Giovanni Caire - TILAB
See Also:
LoaderBehaviour, Serialized Form

Constructor Summary
LoadBehaviour()
           
 
Method Summary
 java.lang.String getClassName()
           
 byte[] getCode()
           
 List getParameters()
           
 byte[] getZip()
           
 void setClassName(java.lang.String className)
          Sets the name of the class of the behaviour to load
 void setCode(byte[] code)
          Sets the code of the class of the behaviour to load.
 void setParameters(List parameters)
          Set the list of parameters to be passed to the behaviour.
 void setZip(byte[] zip)
          Sets the code of the behaviour to load as the content of a zip file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadBehaviour

public LoadBehaviour()
Method Detail

setClassName

public void setClassName(java.lang.String className)
Sets the name of the class of the behaviour to load


getClassName

public java.lang.String getClassName()
Returns:
the name of the class of the behaviour to load

setCode

public void setCode(byte[] code)
Sets the code of the class of the behaviour to load. code must be filled with the content of the class file of the behaviour to load. If the behaviour requires other classes, the setZip() method must be used instead.


getCode

public byte[] getCode()
Returns:
the code of the class of the behaviour to load.

setZip

public void setZip(byte[] zip)
Sets the code of the behaviour to load as the content of a zip file.


getZip

public byte[] getZip()
Returns:
the code of the behaviour to load as the content of a zip file.

setParameters

public void setParameters(List parameters)
Set the list of parameters to be passed to the behaviour. These parameters will be inserted into the behaviour DataStore


getParameters

public List getParameters()
Returns:
the list of parameters to be passed to the behaviour.


JADE