|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.production.action.DefaultAction
org.jactr.core.production.action.ModifyAction
public class ModifyAction
The ModifyAction is used to modify the slot values of a chunk residing within a specific buffer. The IChunk is neither added nor removed. If upon firing there is no chunk in the buffer, an IllegalActionStateException is thrown.
| Nested Class Summary | |
|---|---|
class |
ModifyAction.ModifyActionTimedEvent
|
| Constructor Summary | |
|---|---|
ModifyAction()
Constructor for the ModifyAction object |
|
ModifyAction(java.lang.String bufferName)
Constructor merely takes the name of the buffer where the chunk will reside. |
|
ModifyAction(java.lang.String bufferName,
java.util.Collection<? extends ISlot> slots)
|
|
| Method Summary | |
|---|---|
void |
addSlot(ISlot s)
Adds a slot |
IAction |
bind(java.util.Map<java.lang.String,java.lang.Object> variableBindings)
Bind is called during the creation of an instantiation of a produciton. |
boolean |
canModify()
Description of the Method |
void |
dispose()
Description of the Method |
double |
fire(IInstantiation instantiation,
double firingTime)
fire this modify action this will actually post a timed event to the timed event queue that will do the work.. |
java.lang.String |
getBufferName()
|
java.util.Collection<? extends ISlot> |
getSlots()
return a duplicate copy of all the slots |
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> slots)
|
void |
removeSlot(ISlot s)
remove a slot |
void |
setBufferName(java.lang.String name)
set the name of the buffer that this action manipulates |
| Methods inherited from class org.jactr.core.production.action.DefaultAction |
|---|
resolve |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModifyAction(java.lang.String bufferName)
bufferName - Description of Parameterpublic ModifyAction()
public ModifyAction(java.lang.String bufferName,
java.util.Collection<? extends ISlot> slots)
| Method Detail |
|---|
public void dispose()
dispose in interface IActiondispose in class DefaultActionpublic boolean canModify()
public IAction bind(java.util.Map<java.lang.String,java.lang.Object> variableBindings)
throws CannotInstantiateException
IAction
bind in interface IActionCannotInstantiateExceptionpublic java.lang.String getBufferName()
getBufferName in interface IBufferActionpublic void setBufferName(java.lang.String name)
IBufferAction
setBufferName in interface IBufferActionpublic java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots in interface ISlotContainerpublic java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
getSlots in interface ISlotContainerpublic void addSlot(ISlot s)
ISlotContainer
addSlot in interface ISlotContainers - The feature to be added to the ISlot attributepublic void removeSlot(ISlot s)
ISlotContainer
removeSlot in interface ISlotContainers - Description of Parameter
public double fire(IInstantiation instantiation,
double firingTime)
fire in interface IActionfire in class DefaultActioninstantiation - Description of the ParameterfiringTime - when this production was fired
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||