Package jadex.bpmn.model
Class MPool
- java.lang.Object
-
public class MPool extends MAssociationTarget
A pool represents some kind of unit inside a bpmn model.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<MActivity>
activities
The vertices.protected java.util.List<MArtifact>
artifacts
The artifacs.protected java.util.List<MLane>
lanes
The lanes.protected java.lang.String
type
The type.-
Fields inherited from class jadex.bpmn.model.MAssociationTarget
associations, associationsdescription
-
Fields inherited from class jadex.bpmn.model.MNamedIdElement
description, name
-
Fields inherited from class jadex.bpmn.model.MAnnotationElement
annotations
-
Fields inherited from class jadex.bpmn.model.MIdElement
id, ID_GENERATOR
-
-
Constructor Summary
Constructors Constructor Description MPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActivity(MActivity activity)
Add an activity.void
addArtifact(MArtifact artifact)
Add an artifact.void
addLane(MLane lane)
Add a lane.java.util.List<MActivity>
getActivities()
Get the activities.MActivity
getActivity(java.lang.String id)
Get an activity per id.java.util.List<MArtifact>
getArtifacts()
Get the artifacts.java.util.List<MLane>
getLanes()
Get the lanes.java.util.List<MActivity>
getStartActivities()
Get all start activities of the pool.java.lang.String
getType()
Get the type.void
removeActivity(MActivity activity)
Remove an activity.void
removeArtifact(MArtifact artifact)
Remove an artifact.void
removeLane(MLane lane)
Remove a lane.void
setType(java.lang.String type)
Set the type.-
Methods inherited from class jadex.bpmn.model.MAssociationTarget
addAssociation, getAssociations, getAssociationsDescription, removeAssociation, setAssociationsDescription
-
Methods inherited from class jadex.bpmn.model.MNamedIdElement
getDescription, getName, setDescription, setName
-
Methods inherited from class jadex.bpmn.model.MAnnotationElement
addAnnotation, getAnnotations
-
Methods inherited from class jadex.bpmn.model.MIdElement
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getActivities
public java.util.List<MActivity> getActivities()
Get the activities.- Returns:
- The activities.
-
getActivity
public MActivity getActivity(java.lang.String id)
Get an activity per id.
-
addActivity
public void addActivity(MActivity activity)
Add an activity.- Parameters:
activity
- The activity.
-
removeActivity
public void removeActivity(MActivity activity)
Remove an activity.- Parameters:
activity
- The activity.
-
getLanes
public java.util.List<MLane> getLanes()
Get the lanes.- Returns:
- The lanes.
-
addLane
public void addLane(MLane lane)
Add a lane.- Parameters:
lane
- The lane.
-
removeLane
public void removeLane(MLane lane)
Remove a lane.- Parameters:
lane
- The lane.
-
getArtifacts
public java.util.List<MArtifact> getArtifacts()
Get the artifacts.- Returns:
- The artifacts.
-
addArtifact
public void addArtifact(MArtifact artifact)
Add an artifact.- Parameters:
artifact
- The artifact.
-
removeArtifact
public void removeArtifact(MArtifact artifact)
Remove an artifact.- Parameters:
artifact
- The artifact.
-
getType
public java.lang.String getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(java.lang.String type)
Set the type.- Parameters:
type
- The type to set.
-
getStartActivities
public java.util.List<MActivity> getStartActivities()
Get all start activities of the pool.- Returns:
- A non-empty List of start activities or null, if none.
-
-