public class MCapability extends MElement
CAPABILITY_SEPARATOR
Constructor and Description |
---|
MCapability(String name)
Create a capability.
|
Modifier and Type | Method and Description |
---|---|
void |
addBelief(MBelief belief)
Add a belief.
|
void |
addConfiguration(MConfiguration config)
Add a configuration.
|
void |
addGoal(MGoal goal)
Add a goal.
|
void |
addPlan(MPlan plan)
Add a plan.
|
void |
addservice(MServiceCall ser)
Add a service.
|
MBelief |
getBelief(String name)
Get a belief.
|
List<MBelief> |
getBeliefs()
Get the beliefs.
|
MConfiguration |
getConfiguration(String name)
Get the configurations.
|
List<MConfiguration> |
getConfigurations()
Get the configurations.
|
MGoal |
getGoal(String name)
Get the goal for its name.
|
List<MGoal> |
getGoals()
Get the goals.
|
MPlan |
getPlan(String name)
Get the plan for its name.
|
List<MPlan> |
getPlans()
Get the plans.
|
MServiceCall |
getService(String name)
Get the plan for its name.
|
List<MServiceCall> |
getServices()
Get the services.
|
boolean |
hasBelief(String name)
Test if a belief is contained.
|
void |
setBeliefs(List<MBelief> beliefs)
Set the beliefs.
|
void |
setConfigurations(List<MConfiguration> configurations)
Set the configurations.
|
void |
setGoals(List<MGoal> goals)
Set the goals.
|
void |
setPlans(List<MPlan> plans)
Set the plans.
|
void |
setServices(List<MServiceCall> services)
Set the services.
|
void |
sortPlans(ClassLoader cl)
Sorts plans according to their line numbers in the source
to guarantee their natural declaration order.
|
getCapabilityName, getName, setName
public MCapability(String name)
public void setBeliefs(List<MBelief> beliefs)
beliefs
- The beliefs to set.public void addBelief(MBelief belief)
public boolean hasBelief(String name)
public void setGoals(List<MGoal> goals)
goals
- The goals to set.public void addGoal(MGoal goal)
public void setPlans(List<MPlan> plans)
plans
- The plans to set.public void addPlan(MPlan plan)
public void sortPlans(ClassLoader cl)
public List<MConfiguration> getConfigurations()
public void setConfigurations(List<MConfiguration> configurations)
configurations
- The configurations to set.public void addConfiguration(MConfiguration config)
public MConfiguration getConfiguration(String name)
public List<MServiceCall> getServices()
public void setServices(List<MServiceCall> services)
services
- The services to set.public MServiceCall getService(String name)
public void addservice(MServiceCall ser)
Copyright © 2015. All Rights Reserved.