Package jadex.bdi.model
Class MParameterElement
java.lang.Object
jadex.bdi.model.MElement
jadex.bdi.model.MParameterElement
- Direct Known Subclasses:
MPlan,MProcessableElement
Base class for elements with parameters.
-
Field Summary
FieldsFields inherited from class jadex.bdi.model.MElement
CAPABILITY_SEPARATOR, description, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(MParameter parameter) Add a parameter.getParameter(String name) Get a parameter by name.Get the parameters.booleanhasParameter(String name) Test if goal has a parameter.hasParameterIgnoreCase(String name) Test if a param is contained.voidsetParameters(List<MParameter> parameters) Set the parameters.Methods inherited from class jadex.bdi.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
Field Details
-
parameters
The parameters.
-
-
Constructor Details
-
MParameterElement
public MParameterElement()Bean Constructor. -
MParameterElement
Create a new element.
-
-
Method Details
-
getParameters
Get the parameters.- Returns:
- The parameters.
-
getParameter
Get a parameter by name. -
hasParameter
Test if goal has a parameter. -
setParameters
Set the parameters.- Parameters:
parameters- The parameters to set.
-
addParameter
Add a parameter.- Parameters:
parameter- The parameter.
-
hasParameterIgnoreCase
Test if a param is contained.- Parameters:
name- The name.- Returns:
- The correctly spelled parameter name or null.
-