Package jadex.model.modelinfo
Class Argument
java.lang.Object
jadex.common.UnparsedExpression
jadex.model.modelinfo.Argument
- All Implemented Interfaces:
IArgument
Simple default implementation for an argument.
-
Field Summary
FieldsFields inherited from class jadex.common.UnparsedExpression
clazz, language, name, parsed, value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertArguments
(Collection<jadex.common.Tuple2<String, Object>> results) Convert arguments to argument map.jadex.common.UnparsedExpression
Get the default value.Get the description.static Object
getResult
(Collection<jadex.common.Tuple2<String, Object>> results, String name) Get a specific result from a result collection.void
setDescription
(String description) Set the description.toString()
Get the string representation.boolean
Check the validity of an input.Methods inherited from class jadex.common.UnparsedExpression
getClazz, getLanguage, getName, getParsed, getValue, setClazz, setLanguage, setName, setParsedExp, setValue
-
Field Details
-
description
The description.
-
-
Constructor Details
-
Argument
public Argument()Create a new argument. -
Argument
Create a new argument.
-
-
Method Details
-
getDescription
Get the description.- Specified by:
getDescription
in interfaceIArgument
- Returns:
- The description.
-
setDescription
Set the description.- Parameters:
description
- The description to set.
-
getDefaultValue
public jadex.common.UnparsedExpression getDefaultValue()Get the default value.- Specified by:
getDefaultValue
in interfaceIArgument
- Returns:
- The default value.
-
validate
Check the validity of an input. -
toString
Get the string representation.- Overrides:
toString
in classjadex.common.UnparsedExpression
- Returns:
- The string representation.
-
getResult
Get a specific result from a result collection. -
convertArguments
public static Map<String,Object> convertArguments(Collection<jadex.common.Tuple2<String, Object>> results) Convert arguments to argument map.
-