jadex.gpmn.model.MContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-kernel-gpmn Show documentation
Show all versions of jadex-kernel-gpmn Show documentation
The Jadex GPMN (goal oriented process modeling
notation) kernel provides a goal-oriented workflow
kernel. The idea is that a workflow is specified as
declarative goal hierarchy, which describes what has
to be achieved to fulfill the workflow. At runtime
goals are pursued by executing plans represented by
standard BPMN workflows. The execution of goal-based
workflows is achieved by conversion to BDI agents.
The newest version!
package jadex.gpmn.model;
import java.util.ArrayList;
import java.util.List;
/**
*
*/
public class MContext
{
//-------- attributes --------
/** The elements. */
protected List elements;
//-------- methods --------
/**
* Get the elements.
* @return The elements.
*/
public List getElements()
{
return elements;
}
/**
* Add a context element.
* @param param The context element.
*/
public void addContextElement(MContextElement element)
{
if(elements==null)
elements = new ArrayList();
elements.add(element);
}
/**
* Remove a context element.
* @param param The context element.
*/
public void removeContextElement(MContextElement element)
{
if(elements!=null)
elements.remove(element);
}
}