jade.domain.mobility
Class Parameter
java.lang.Object
|
+--jade.domain.mobility.Parameter
- All Implemented Interfaces:
- Concept, java.io.Serializable, Serializable, Term
- public class Parameter
- extends java.lang.Object
- implements Concept
This concept represents a parameter to be passed to a Behaviour
in the dynamic loading procedure.
- Author:
- Giovanni Caire - TILAB
- See Also:
LoadBehaviour
,
LoaderBehaviour
,
Serialized Form
Constructor Summary |
Parameter()
|
Parameter(java.lang.String name,
java.lang.Object value)
|
Parameter(java.lang.String name,
java.lang.Object value,
int mode)
|
Method Summary |
int |
getMode()
|
java.lang.String |
getName()
|
java.lang.Object |
getValue()
|
void |
setMode(int mode)
Sets the IO mode of this parameter.
|
void |
setName(java.lang.String name)
Sets the name of this parameter. |
void |
setValue(java.lang.Object value)
Sets the value of this parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IN_MODE
public static final int IN_MODE
- See Also:
- Constant Field Values
OUT_MODE
public static final int OUT_MODE
- See Also:
- Constant Field Values
INOUT_MODE
public static final int INOUT_MODE
- See Also:
- Constant Field Values
Parameter
public Parameter()
Parameter
public Parameter(java.lang.String name,
java.lang.Object value)
Parameter
public Parameter(java.lang.String name,
java.lang.Object value,
int mode)
setName
public void setName(java.lang.String name)
- Sets the name of this parameter. This will be used as
the key in the dinamically loaded behaviour
DataStore
for the parameter value
getName
public java.lang.String getName()
- Returns:
- the name of this parameter.
setValue
public void setValue(java.lang.Object value)
- Sets the value of this parameter. The BehaviourLoading
ontology extends the SerializableOntology and therefore
whatever
Serializable
object can be used.
getValue
public java.lang.Object getValue()
- Returns:
- the value of this parameter.
setMode
public void setMode(int mode)
- Sets the IO mode of this parameter.
This must be one of
IN_MODE
, OUT_MODE
,
INOUT_MODE
.
getMode
public int getMode()
- Returns:
- the IO mode of this parameter.
JADE