Package jadex.bdi.model
Class MDeliberation
java.lang.Object
jadex.bdi.model.MDeliberation
Model element for inhibitions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
The cardinality.protected boolean
The drop on inhibit flag.The methods for checking inhibitions.The inhibited goal types.The methods for checking inhibitions.The inhnames. -
Constructor Summary
ConstructorsConstructorDescriptionBean Constructor.MDeliberation
(Set<String> inhnames, Map<String, jadex.common.MethodInfo> inhmethods, boolean cardinalityone, boolean droponinhibit) Create a new deliberation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInhibitionExpression
(jadex.common.UnparsedExpression inhexp) Add an inhibition expression.void
addInhibitionName
(String inhname) Add an inhibition name.Get the inhibition expressions.Get the inhmethods.getInhibitions
(MCapability capa) Get the inhibited.boolean
Get the cardinalityone.boolean
Get the drop on inhibit flag.void
setCardinalityOne
(boolean cardinalityone) Set the cardinalityone.void
setDropOnInhibit
(boolean droponinhibit) Set the drop on inhibit flag.void
setInhibitionMethods
(Map<String, jadex.common.MethodInfo> inhmethods) Set the inhmethods.void
setInhibitions
(Set<MGoal> inhibitions) Set the inhibitions.
-
Field Details
-
cardinalityone
protected boolean cardinalityoneThe cardinality. -
droponinhibit
protected boolean droponinhibitThe drop on inhibit flag. -
inhibitions
The inhibited goal types. -
inhmethods
The methods for checking inhibitions. -
inhnames
The inhnames. -
inhexpressions
The methods for checking inhibitions.
-
-
Constructor Details
-
Method Details
-
isCardinalityOne
public boolean isCardinalityOne()Get the cardinalityone.- Returns:
- The cardinalityone.
-
setCardinalityOne
public void setCardinalityOne(boolean cardinalityone) Set the cardinalityone.- Parameters:
cardinalityone
- The cardinalityone to set.
-
isDropOnInhibit
public boolean isDropOnInhibit()Get the drop on inhibit flag.- Returns:
- the droponinhibit flag.
-
setDropOnInhibit
public void setDropOnInhibit(boolean droponinhibit) Set the drop on inhibit flag.- Parameters:
droponinhibit
- The droponinhibit to set.
-
getInhibitions
Get the inhibited.- Returns:
- The inhibited.
-
setInhibitions
Set the inhibitions.- Parameters:
inhibitions
- The inhibited to set.
-
getInhibitionMethods
Get the inhmethods.- Returns:
- The inhmethods.
-
setInhibitionMethods
Set the inhmethods.- Parameters:
inhmethods
- The inhmethods to set.
-
addInhibitionName
Add an inhibition name.- Parameters:
inhname
- The inhibition name.
-
addInhibitionExpression
public void addInhibitionExpression(jadex.common.UnparsedExpression inhexp) Add an inhibition expression.- Parameters:
inhname
- The inhibition expression.
-
getInhibitionExpressions
Get the inhibition expressions.- Returns:
- The inhexpressions
-