Package jadex.bdiv3.model
Class MProcessableElement
- java.lang.Object
-
- jadex.bdiv3.model.MElement
-
- jadex.bdiv3.model.MParameterElement
-
- jadex.bdiv3.model.MProcessableElement
-
- Direct Known Subclasses:
MClassBasedElement
,MInternalEvent
,MMessageEvent
,MServiceCall
public class MProcessableElement extends MParameterElement
Base class for all elements that can be processed with means-end reasoning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MProcessableElement.ExcludeMode
The exclude mode determines when and if a plan is removed from the applicable plans list (APL).
-
Field Summary
Fields Modifier and Type Field Description protected MProcessableElement.ExcludeMode
excludemode
The exclude mode.protected boolean
exported
The exported flag.static java.util.Map<java.lang.String,MProcessableElement.ExcludeMode>
modes
protected boolean
posttoall
Post to all flag.protected boolean
randomselection
Random selection flag.protected boolean
rebuild
The rebuild mode.-
Fields inherited from class jadex.bdiv3.model.MParameterElement
parameters
-
Fields inherited from class jadex.bdiv3.model.MElement
CAPABILITY_SEPARATOR, description, name
-
-
Constructor Summary
Constructors Constructor Description MProcessableElement()
Bean Constructor.MProcessableElement(java.lang.String name, boolean posttoall, boolean rebuild, boolean randomselection, MProcessableElement.ExcludeMode excludemode)
Create a new element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MProcessableElement.ExcludeMode
getExcludeMode()
Get the excludemode.boolean
isExported()
Get the exported flag.boolean
isPostToAll()
Test if is posttoall.boolean
isRandomSelection()
Test if is random selection.boolean
isRebuild()
Test if rebuild APL.void
setExcludeMode(MProcessableElement.ExcludeMode excludemode)
Set the excludemode.void
setExported(boolean exported)
Set the exported flag.void
setPostToAll(boolean posttoall)
Set the posttoall.void
setRandomSelection(boolean randomselection)
Set the randomselection.void
setRebuild(boolean rebuild)
Set the rebuild.-
Methods inherited from class jadex.bdiv3.model.MParameterElement
addParameter, getParameter, getParameters, hasParameter, hasParameterIgnoreCase, setParameters
-
Methods inherited from class jadex.bdiv3.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
-
-
-
Field Detail
-
modes
public static java.util.Map<java.lang.String,MProcessableElement.ExcludeMode> modes
-
posttoall
protected boolean posttoall
Post to all flag.
-
randomselection
protected boolean randomselection
Random selection flag.
-
rebuild
protected boolean rebuild
The rebuild mode.
-
excludemode
protected MProcessableElement.ExcludeMode excludemode
The exclude mode.
-
exported
protected boolean exported
The exported flag.
-
-
Constructor Detail
-
MProcessableElement
public MProcessableElement()
Bean Constructor.
-
MProcessableElement
public MProcessableElement(java.lang.String name, boolean posttoall, boolean rebuild, boolean randomselection, MProcessableElement.ExcludeMode excludemode)
Create a new element.
-
-
Method Detail
-
isPostToAll
public boolean isPostToAll()
Test if is posttoall.- Returns:
- True, if posttoaall.
-
isRandomSelection
public boolean isRandomSelection()
Test if is random selection.- Returns:
- True, if is random selection.
-
setPostToAll
public void setPostToAll(boolean posttoall)
Set the posttoall.- Parameters:
posttoall
- The posttoall to set.
-
setRandomSelection
public void setRandomSelection(boolean randomselection)
Set the randomselection.- Parameters:
randomselection
- The randomselection to set.
-
isRebuild
public boolean isRebuild()
Test if rebuild APL.- Returns:
- True, if rebuild.
-
setRebuild
public void setRebuild(boolean rebuild)
Set the rebuild.- Parameters:
rebuild
- The rebuild to set.
-
getExcludeMode
public MProcessableElement.ExcludeMode getExcludeMode()
Get the excludemode.- Returns:
- The excludemode.
-
setExcludeMode
public void setExcludeMode(MProcessableElement.ExcludeMode excludemode)
Set the excludemode.- Parameters:
excludemode
- The excludemode to set.
-
isExported
public boolean isExported()
Get the exported flag.- Returns:
- The exported flag.
-
setExported
public void setExported(boolean exported)
Set the exported flag.- Parameters:
exported
- The exported to set.
-
-