Package jadex.bdi.model
Class MProcessableElement
java.lang.Object
jadex.bdi.model.MElement
jadex.bdi.model.MParameterElement
jadex.bdi.model.MProcessableElement
- Direct Known Subclasses:
MClassBasedElement
,MInternalEvent
,MMessageEvent
,MServiceCall
Base class for all elements that can be processed with means-end reasoning.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExcludeMode
The exclude mode.protected boolean
The exported flag.protected boolean
Post to all flag.protected boolean
Random selection flag.protected boolean
The rebuild mode.Fields inherited from class jadex.bdi.model.MParameterElement
parameters
Fields inherited from class jadex.bdi.model.MElement
CAPABILITY_SEPARATOR, description, name
-
Constructor Summary
ConstructorsConstructorDescriptionBean Constructor.MProcessableElement
(String name, boolean posttoall, boolean rebuild, boolean randomselection, ExcludeMode excludemode) Create a new element. -
Method Summary
Modifier and TypeMethodDescriptionGet the excludemode.boolean
Get the exported flag.boolean
Test if is posttoall.boolean
Test if is random selection.boolean
Test if rebuild APL.void
setExcludeMode
(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.bdi.model.MParameterElement
addParameter, getParameter, getParameters, hasParameter, hasParameterIgnoreCase, setParameters
Methods inherited from class jadex.bdi.model.MElement
equals, getCapabilityName, getDescription, getElementName, getName, hashCode, internalName, setDescription, setFlatName, setName, toString
-
Field Details
-
posttoall
protected boolean posttoallPost to all flag. -
randomselection
protected boolean randomselectionRandom selection flag. -
rebuild
protected boolean rebuildThe rebuild mode. -
excludemode
The exclude mode. -
exported
protected boolean exportedThe exported flag.
-
-
Constructor Details
-
MProcessableElement
public MProcessableElement()Bean Constructor. -
MProcessableElement
public MProcessableElement(String name, boolean posttoall, boolean rebuild, boolean randomselection, ExcludeMode excludemode) Create a new element.
-
-
Method Details
-
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
Get the excludemode.- Returns:
- The excludemode.
-
setExcludeMode
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.
-