Package jadex.model.modelinfo
Class ConfigurationInfo
java.lang.Object
jadex.model.modelinfo.Startable
jadex.model.modelinfo.ConfigurationInfo
Information contained in a component configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<jadex.common.UnparsedExpression> The list of argument default values.protected List
<ComponentInstanceInfo> The list of contained components.protected List
<jadex.common.UnparsedExpression> The end steps.protected List
<jadex.common.UnparsedExpression> The initial steps.protected String
The name.protected List
<jadex.common.UnparsedExpression> The list of result default values.Fields inherited from class jadex.model.modelinfo.Startable
description
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new application.ConfigurationInfo
(String name) Create a new application. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgument
(jadex.common.UnparsedExpression argument) Add an argument.void
addComponentInstance
(ComponentInstanceInfo component) Add a component.void
addEndStep
(jadex.common.UnparsedExpression endstep) Add a end step.void
addInitialStep
(jadex.common.UnparsedExpression initialstep) Add a initial step.void
addResult
(jadex.common.UnparsedExpression res) Add a result.jadex.common.UnparsedExpression[]
Get the list of arguments.Get all components.jadex.common.UnparsedExpression[]
Get the end steps.jadex.common.UnparsedExpression[]
Get the initial steps.getName()
Get the name.jadex.common.UnparsedExpression[]
Get the list of results.boolean
hasArgument
(String name) Test if has an argument.boolean
hasComponentInstance
(String name, String typename) Test if has a component instance.boolean
Test if has a result.void
removeComponentInstance
(ComponentInstanceInfo component) Removes a component.void
setArguments
(jadex.common.UnparsedExpression[] arguments) Set the arguments.void
setEndSteps
(jadex.common.UnparsedExpression[] endsteps) Set the end steps.void
setInitialSteps
(jadex.common.UnparsedExpression[] initialsteps) Set the initial steps.void
Set the name.void
setResults
(jadex.common.UnparsedExpression[] results) Set the arguments.Methods inherited from class jadex.model.modelinfo.Startable
getDescription, getKeepalive, getSuspend, getSynchronous, setDescription, setKeepalive, setSuspend, setSynchronous
-
Field Details
-
name
The name. -
components
The list of contained components. -
arguments
The list of argument default values. -
results
The list of result default values. -
initialsteps
The initial steps. -
endsteps
The end steps.
-
-
Constructor Details
-
ConfigurationInfo
public ConfigurationInfo()Create a new application. -
ConfigurationInfo
Create a new application.
-
-
Method Details
-
getName
Get the name.- Returns:
- The name.
-
setName
Set the name.- Parameters:
name
- The name to set.
-
addComponentInstance
Add a component.- Parameters:
component
- The component.
-
removeComponentInstance
Removes a component.- Parameters:
component
- The component.
-
getComponentInstances
Get all components.- Returns:
- The components.
-
hasComponentInstance
Test if has a component instance. -
getArguments
public jadex.common.UnparsedExpression[] getArguments()Get the list of arguments.- Returns:
- The arguments.
-
setArguments
public void setArguments(jadex.common.UnparsedExpression[] arguments) Set the arguments.- Parameters:
arguments
- The arguments to set.
-
addArgument
public void addArgument(jadex.common.UnparsedExpression argument) Add an argument.- Parameters:
arg
- The argument.
-
hasArgument
Test if has an argument. -
getResults
public jadex.common.UnparsedExpression[] getResults()Get the list of results.- Returns:
- The results.
-
setResults
public void setResults(jadex.common.UnparsedExpression[] results) Set the arguments.- Parameters:
arguments
- The arguments to set.
-
hasResult
Test if has a result. -
addResult
public void addResult(jadex.common.UnparsedExpression res) Add a result.- Parameters:
res
- The result.
-
getInitialSteps
public jadex.common.UnparsedExpression[] getInitialSteps()Get the initial steps.- Returns:
- The initial steps.
-
setInitialSteps
public void setInitialSteps(jadex.common.UnparsedExpression[] initialsteps) Set the initial steps.- Parameters:
initial
- steps The initial steps to set.
-
addInitialStep
public void addInitialStep(jadex.common.UnparsedExpression initialstep) Add a initial step.- Parameters:
initialstep
- The initial step.
-
getEndSteps
public jadex.common.UnparsedExpression[] getEndSteps()Get the end steps.- Returns:
- The end steps.
-
setEndSteps
public void setEndSteps(jadex.common.UnparsedExpression[] endsteps) Set the end steps.- Parameters:
end
- steps The end steps to set.
-
addEndStep
public void addEndStep(jadex.common.UnparsedExpression endstep) Add a end step.- Parameters:
endstep
- The end step.
-