Package jadex.bridge.modelinfo
Class ConfigurationInfo
- java.lang.Object
-
- jadex.bridge.modelinfo.Startable
-
- jadex.bridge.modelinfo.ConfigurationInfo
-
public class ConfigurationInfo extends Startable
Information contained in a component configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<UnparsedExpression>
arguments
The list of argument default values.protected java.util.List<ComponentInstanceInfo>
components
The list of contained components.protected java.util.List<UnparsedExpression>
endsteps
The end steps.protected java.util.List<UnparsedExpression>
initialsteps
The initial steps.protected java.lang.String
name
The name.protected java.util.List<ProvidedServiceInfo>
providedservices
The provided service overridings.protected java.util.List<RequiredServiceInfo>
requiredservices
The required service overridings.protected java.util.List<UnparsedExpression>
results
The list of result default values.-
Fields inherited from class jadex.bridge.modelinfo.Startable
description
-
-
Constructor Summary
Constructors Constructor Description ConfigurationInfo()
Create a new application.ConfigurationInfo(java.lang.String name)
Create a new application.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(UnparsedExpression argument)
Add an argument.void
addComponentInstance(ComponentInstanceInfo component)
Add a component.void
addEndStep(UnparsedExpression endstep)
Add a end step.void
addInitialStep(UnparsedExpression initialstep)
Add a initial step.void
addProvidedService(ProvidedServiceInfo providedservice)
Add a provided service.void
addRequiredService(RequiredServiceInfo requiredservice)
Add a required service.void
addResult(UnparsedExpression res)
Add a result.UnparsedExpression[]
getArguments()
Get the list of arguments.ComponentInstanceInfo[]
getComponentInstances()
Get all components.UnparsedExpression[]
getEndSteps()
Get the end steps.UnparsedExpression[]
getInitialSteps()
Get the initial steps.java.lang.String
getName()
Get the name.ProvidedServiceInfo[]
getProvidedServices()
Get the provided services.UnparsedExpression[]
getResults()
Get the list of results.RequiredServiceInfo[]
getServices()
Get the required services.boolean
hasArgument(java.lang.String name)
Test if has an argument.boolean
hasComponentInstance(java.lang.String name, java.lang.String typename)
Test if has a component instance.boolean
hasProvidedService(java.lang.String name)
Test if has a provided service.boolean
hasRequiredService(java.lang.String name)
Test if has a required service.boolean
hasResult(java.lang.String name)
Test if has a result.void
removeComponentInstance(ComponentInstanceInfo component)
Removes a component.void
removeProvidedService(ProvidedServiceInfo providedservice)
Remove a provided service.void
removeRequiredService(RequiredServiceInfo requiredservice)
Remove a required service.void
setArguments(UnparsedExpression[] arguments)
Set the arguments.void
setEndSteps(UnparsedExpression[] endsteps)
Set the end steps.void
setInitialSteps(UnparsedExpression[] initialsteps)
Set the initial steps.void
setName(java.lang.String name)
Set the name.void
setProvidedServices(ProvidedServiceInfo[] providedservices)
Set the provided services.void
setRequiredServices(RequiredServiceInfo[] requiredservices)
Set the required services.void
setResults(UnparsedExpression[] results)
Set the arguments.-
Methods inherited from class jadex.bridge.modelinfo.Startable
getDescription, getKeepalive, getMonitoring, getScope, getSuspend, getSynchronous, setDescription, setKeepalive, setMonitoring, setScope, setSuspend, setSynchronous
-
-
-
-
Field Detail
-
name
protected java.lang.String name
The name.
-
components
protected java.util.List<ComponentInstanceInfo> components
The list of contained components.
-
arguments
protected java.util.List<UnparsedExpression> arguments
The list of argument default values.
-
results
protected java.util.List<UnparsedExpression> results
The list of result default values.
-
providedservices
protected java.util.List<ProvidedServiceInfo> providedservices
The provided service overridings.
-
requiredservices
protected java.util.List<RequiredServiceInfo> requiredservices
The required service overridings.
-
initialsteps
protected java.util.List<UnparsedExpression> initialsteps
The initial steps.
-
endsteps
protected java.util.List<UnparsedExpression> endsteps
The end steps.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
addComponentInstance
public void addComponentInstance(ComponentInstanceInfo component)
Add a component.- Parameters:
component
- The component.
-
removeComponentInstance
public void removeComponentInstance(ComponentInstanceInfo component)
Removes a component.- Parameters:
component
- The component.
-
getComponentInstances
public ComponentInstanceInfo[] getComponentInstances()
Get all components.- Returns:
- The components.
-
hasComponentInstance
public boolean hasComponentInstance(java.lang.String name, java.lang.String typename)
Test if has a component instance.
-
getArguments
public UnparsedExpression[] getArguments()
Get the list of arguments.- Returns:
- The arguments.
-
setArguments
public void setArguments(UnparsedExpression[] arguments)
Set the arguments.- Parameters:
arguments
- The arguments to set.
-
addArgument
public void addArgument(UnparsedExpression argument)
Add an argument.- Parameters:
arg
- The argument.
-
hasArgument
public boolean hasArgument(java.lang.String name)
Test if has an argument.
-
getResults
public UnparsedExpression[] getResults()
Get the list of results.- Returns:
- The results.
-
setResults
public void setResults(UnparsedExpression[] results)
Set the arguments.- Parameters:
arguments
- The arguments to set.
-
hasResult
public boolean hasResult(java.lang.String name)
Test if has a result.
-
addResult
public void addResult(UnparsedExpression res)
Add a result.- Parameters:
res
- The result.
-
getProvidedServices
public ProvidedServiceInfo[] getProvidedServices()
Get the provided services.- Returns:
- The provided services.
-
setProvidedServices
public void setProvidedServices(ProvidedServiceInfo[] providedservices)
Set the provided services.- Parameters:
provided
- services The provided services to set.
-
addProvidedService
public void addProvidedService(ProvidedServiceInfo providedservice)
Add a provided service.- Parameters:
providedservice
- The provided service.
-
removeProvidedService
public void removeProvidedService(ProvidedServiceInfo providedservice)
Remove a provided service.- Parameters:
providedservice
- The provided service.
-
hasProvidedService
public boolean hasProvidedService(java.lang.String name)
Test if has a provided service.
-
getServices
public RequiredServiceInfo[] getServices()
Get the required services.- Returns:
- The required services.
-
setRequiredServices
public void setRequiredServices(RequiredServiceInfo[] requiredservices)
Set the required services.- Parameters:
required
- services The required services to set.
-
addRequiredService
public void addRequiredService(RequiredServiceInfo requiredservice)
Add a required service.- Parameters:
requiredservice
- The required service.
-
removeRequiredService
public void removeRequiredService(RequiredServiceInfo requiredservice)
Remove a required service.- Parameters:
requiredservice
- The required service.
-
hasRequiredService
public boolean hasRequiredService(java.lang.String name)
Test if has a required service.
-
getInitialSteps
public UnparsedExpression[] getInitialSteps()
Get the initial steps.- Returns:
- The initial steps.
-
setInitialSteps
public void setInitialSteps(UnparsedExpression[] initialsteps)
Set the initial steps.- Parameters:
initial
- steps The initial steps to set.
-
addInitialStep
public void addInitialStep(UnparsedExpression initialstep)
Add a initial step.- Parameters:
initialstep
- The initial step.
-
getEndSteps
public UnparsedExpression[] getEndSteps()
Get the end steps.- Returns:
- The end steps.
-
setEndSteps
public void setEndSteps(UnparsedExpression[] endsteps)
Set the end steps.- Parameters:
end
- steps The end steps to set.
-
addEndStep
public void addEndStep(UnparsedExpression endstep)
Add a end step.- Parameters:
endstep
- The end step.
-
-