Package jadex.bdi.runtime.impl
Class RProcessableElement
java.lang.Object
jadex.bdi.runtime.impl.RElement
jadex.bdi.runtime.impl.RParameterElement
jadex.bdi.runtime.impl.RProcessableElement
- All Implemented Interfaces:
IElement
,IParameterElement
,jadex.javaparser.IMapAccess
- Direct Known Subclasses:
RFinishableElement
,RMessageEvent
Runtime element for all elements that can be processed via means-end reasoning.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class jadex.bdi.runtime.impl.RParameterElement
RParameterElement.RParameter, RParameterElement.RParameterSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected APL
The applicable plan list.protected Object
The pojo element.protected RProcessableElement.State
The state.protected List
<IInternalPlan> The tried plans.Fields inherited from class jadex.bdi.runtime.impl.RParameterElement
parameters, parametersets
Fields inherited from class jadex.bdi.runtime.impl.RElement
cnt, id, modelelement
-
Constructor Summary
ConstructorsConstructorDescriptionRProcessableElement
(MProcessableElement modelelement, Object pojoelement, Map<String, Object> vals, MConfigParameterElement config) Create a new element. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTriedPlan
(IInternalPlan plan) Add a tried plan.Get the apl.Get the pojoelement.getState()
Get the state.Get the triedplans.void
planFinished
(IInternalPlan rplan) Called when plan execution has finished.void
setApplicablePlanList
(APL apl) Set the apl.void
setPojoElement
(Object pojoelement) Set the pojoelement.void
Set the state.void
setTriedPlans
(List<IInternalPlan> triedplans) Set the triedplans.void
testWriteOK
(MParameter mparam) Test if parameter writes are currently allowed.toString()
Get the string representation.Methods inherited from class jadex.bdi.runtime.impl.RParameterElement
addParameter, addParameterSet, createParameter, createParameter, createParameterSet, createParameterSet, get, getFetcherName, getParameter, getParameters, getParameterSet, getParameterSets, getType, hasParameter, hasParameterSet, initParameters, isAdopted, wrapFetcher
Methods inherited from class jadex.bdi.runtime.impl.RElement
getAgent, getCapability, getCount, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jadex.bdi.runtime.IElement
getCount, getId, getModelElement
-
Field Details
-
pojoelement
The pojo element. -
apl
The applicable plan list. -
triedplans
The tried plans. -
state
The state.
-
-
Constructor Details
-
RProcessableElement
public RProcessableElement(MProcessableElement modelelement, Object pojoelement, Map<String, Object> vals, MConfigParameterElement config) Create a new element.
-
-
Method Details
-
getApplicablePlanList
Get the apl.- Returns:
- The apl.
-
setApplicablePlanList
Set the apl.- Parameters:
apl
- The apl to set.
-
getPojoElement
Get the pojoelement.- Returns:
- The pojoelement.
-
setPojoElement
Set the pojoelement.- Parameters:
pojoelement
- The pojoelement to set.
-
addTriedPlan
Add a tried plan. -
getTriedPlans
Get the triedplans.- Returns:
- The triedplans.
-
setTriedPlans
Set the triedplans.- Parameters:
triedplans
- The triedplans to set.
-
getState
Get the state.- Returns:
- The state.
-
setState
Set the state. -
planFinished
Called when plan execution has finished. -
testWriteOK
Test if parameter writes are currently allowed.- Overrides:
testWriteOK
in classRParameterElement
- Throws:
Exception
- when write not ok.
-
toString
Description copied from class:RElement
Get the string representation.
-