Package jade.domain.mobility
Class LoadBehaviour
- java.lang.Object
-
- jade.domain.mobility.LoadBehaviour
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class LoadBehaviour extends Object implements AgentAction
This action represents a request to load aBehaviourwhose 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
Constructors Constructor Description LoadBehaviour()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()byte[]getCode()ListgetParameters()byte[]getZip()voidsetClassName(String className)Sets the name of the class of the behaviour to loadvoidsetCode(byte[] code)Sets the code of the class of the behaviour to load.voidsetParameters(List parameters)Set the list of parameters to be passed to the behaviour.voidsetZip(byte[] zip)Sets the code of the behaviour to load as the content of a zip file.
-
-
-
Method Detail
-
setClassName
public void setClassName(String className)
Sets the name of the class of the behaviour to load
-
getClassName
public 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.codemust be filled with the content of the class file of the behaviour to load. If the behaviour requires other classes, thesetZip()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 behaviourDataStore
-
getParameters
public List getParameters()
- Returns:
- the list of parameters to be passed to the behaviour.
-
-