
jadex.bdiv3.model.MConfiguration Maven / Gradle / Ivy
Go to download
BDIV3 Kernel that supports annotated POJOs and uses byte code manipulation for performance improvements.
package jadex.bdiv3.model;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* BDI configuration. The name is used to connect
* it to the existing component configuration.
*/
public class MConfiguration extends MElement
{
/** The initial beliefs. */
protected List initialbeliefs;
/** The initial goals. */
protected List initialgoals;
/** The initial plans. */
protected List initialplans;
/** The initial events. */
protected List initialevents;
/** The end beliefs. */
protected List endbeliefs;
/** The end goals. */
protected List endgoals;
/** The end plans. */
protected List endplans;
/** The end events. */
protected List endevents;
/** The initial capabilities (capability name->initial configuration name). */
protected Map initialcapabilities;
/**
* Bean Constructor.
*/
public MConfiguration()
{
}
/**
*
*/
public MConfiguration(String name)
{
super(name);
}
/**
* Get the initial beliefs.
* @return The initial beliefs.
*/
public List getInitialBeliefs()
{
return initialbeliefs;
}
/**
* Set the initial beliefs.
* @param initialbeliefs The initial beliefs to set.
*/
public void setInitialBeliefs(List initialbeliefs)
{
this.initialbeliefs = initialbeliefs;
}
/**
* Add an initial belief.
* @param upex The expression.
*/
public void addInitialBelief(MConfigBeliefElement upex)
{
if(initialbeliefs==null)
{
initialbeliefs = new ArrayList();
}
initialbeliefs.add(upex);
}
/**
* Get the initial goals.
* @return The initial goals.
*/
public List getInitialGoals()
{
return initialgoals;
}
/**
* Set the initial goals.
* @param initialgoals The initial goals to set.
*/
public void setInitialGoals(List initialgoals)
{
this.initialgoals = initialgoals;
}
/**
* Add an initial goal.
* @param upex The expression.
*/
public void addInitialGoal(MConfigParameterElement upex)
{
if(initialgoals==null)
{
initialgoals = new ArrayList();
}
initialgoals.add(upex);
}
/**
* Get the initial plans.
* @return The initial plans.
*/
public List getInitialPlans()
{
return initialplans;
}
/**
* Set the initial plans.
* @param initialplans The initial plans to set.
*/
public void setInitialPlans(List initialplans)
{
this.initialplans = initialplans;
}
/**
* Add an initial plan.
* @param upex The expression.
*/
public void addInitialPlan(MConfigParameterElement upex)
{
if(initialplans==null)
{
initialplans = new ArrayList();
}
initialplans.add(upex);
}
/**
* Get the initial events.
* @return The initial events.
*/
public List getInitialEvents()
{
return initialevents;
}
/**
* Set the initial events.
* @param initialevents The initial events to set.
*/
public void setInitialEvents(List initialevents)
{
this.initialevents = initialevents;
}
/**
* Add an initial event.
* @param upex The expression.
*/
public void addInitialEvent(MConfigParameterElement upex)
{
if(initialevents==null)
{
initialevents = new ArrayList();
}
initialevents.add(upex);
}
/**
* Get the end beliefs.
* @return The end beliefs.
*/
public List getEndBeliefs()
{
return endbeliefs;
}
/**
* Set the end beliefs.
* @param endbeliefs The end beliefs to set.
*/
public void setEndBeliefs(List endbeliefs)
{
this.endbeliefs = endbeliefs;
}
/**
* Add an end belief.
* @param upex The expression.
*/
public void addEndBelief(MConfigBeliefElement upex)
{
if(endbeliefs==null)
{
endbeliefs = new ArrayList();
}
endbeliefs.add(upex);
}
/**
* Get the end goals.
* @return The end goals.
*/
public List getEndGoals()
{
return endgoals;
}
/**
* Set the end goals.
* @param endgoals The end goals to set.
*/
public void setEndGoals(List endgoals)
{
this.endgoals = endgoals;
}
/**
* Add an end goal.
* @param upex The expression.
*/
public void addEndGoal(MConfigParameterElement upex)
{
if(endgoals==null)
{
endgoals = new ArrayList();
}
endgoals.add(upex);
}
/**
* Get the end plans.
* @return The end plans.
*/
public List getEndPlans()
{
return endplans;
}
/**
* Set the end plans.
* @param endplans The end plans to set.
*/
public void setEndPlans(List endplans)
{
this.endplans = endplans;
}
/**
* Add an end plan.
* @param upex The expression.
*/
public void addEndPlan(MConfigParameterElement upex)
{
if(endplans==null)
{
endplans = new ArrayList();
}
endplans.add(upex);
}
/**
* Get the end events.
* @return The end events.
*/
public List getEndEvents()
{
return endevents;
}
/**
* Set the end events.
* @param endevents The end events to set.
*/
public void setEndEvents(List endevents)
{
this.endevents = endevents;
}
/**
* Add an end event.
* @param upex The expression.
*/
public void addEndEvent(MConfigParameterElement upex)
{
if(endevents==null)
{
endevents = new ArrayList();
}
endevents.add(upex);
}
/**
* Get the initial capabilities.
*/
public Map getInitialCapabilities()
{
return initialcapabilities;
}
/**
* Add an initial capability.
*/
public void addInitialCapability(String name, String configuration)
{
if(initialcapabilities==null)
{
initialcapabilities = new LinkedHashMap();
}
initialcapabilities.put(name, configuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy