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 APLThe applicable plan list.protected ObjectThe pojo element.protected RProcessableElement.StateThe state.protected List<IInternalPlan>The tried plans.Fields inherited from class jadex.bdi.runtime.impl.RParameterElement
parameters, parametersetsFields 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 TypeMethodDescriptionvoidaddTriedPlan(IInternalPlan plan) Add a tried plan.Get the apl.Get the pojoelement.getState()Get the state.Get the triedplans.voidplanFinished(IInternalPlan rplan) Called when plan execution has finished.voidsetApplicablePlanList(APL apl) Set the apl.voidsetPojoElement(Object pojoelement) Set the pojoelement.voidSet the state.voidsetTriedPlans(List<IInternalPlan> triedplans) Set the triedplans.voidtestWriteOK(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, wrapFetcherMethods inherited from class jadex.bdi.runtime.impl.RElement
getAgent, getCapability, getCount, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
testWriteOKin classRParameterElement- Throws:
Exception- when write not ok.
-
toString
Description copied from class:RElementGet the string representation.
-