public class ModifyAction extends DefaultAction implements IBufferAction, ISlotContainer
Modifier and Type | Class and Description |
---|---|
class |
ModifyAction.ModifyActionTimedEvent |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(ISlot s)
Adds a slot
|
IAction |
bind(VariableBindings variableBindings)
Bind is called during the creation of an instantiation of a produciton.
|
protected void |
bindChunk(VariableBindings bindings) |
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..
|
protected IChunk |
getBoundChunk() |
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) |
protected java.util.Collection<IMutableSlot> |
getSlotsInternal()
returns actual backing collection
|
void |
removeSlot(ISlot s)
remove a slot
|
void |
setBufferName(java.lang.String name)
set the name of the buffer that this action manipulates
|
bindSlotValues, resolve, updateSlots
public ModifyAction(java.lang.String bufferName)
bufferName
- Description of Parameterpublic ModifyAction()
public ModifyAction(java.lang.String bufferName, java.util.Collection<? extends ISlot> slots)
public void dispose()
dispose
in interface IAction
dispose
in class DefaultAction
public boolean canModify()
public IAction bind(VariableBindings variableBindings) throws CannotInstantiateException
IAction
bind
in interface IAction
CannotInstantiateException
protected void bindChunk(VariableBindings bindings) throws CannotInstantiateException
CannotInstantiateException
public java.lang.String getBufferName()
getBufferName
in interface IBufferAction
public void setBufferName(java.lang.String name)
IBufferAction
setBufferName
in interface IBufferAction
protected java.util.Collection<IMutableSlot> getSlotsInternal()
public java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots
in interface ISlotContainer
public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> slots)
getSlots
in interface ISlotContainer
public void addSlot(ISlot s)
ISlotContainer
addSlot
in interface ISlotContainer
s
- The feature to be added to the ISlot attributepublic void removeSlot(ISlot s)
ISlotContainer
removeSlot
in interface ISlotContainer
s
- Description of Parameterprotected IChunk getBoundChunk()
public double fire(IInstantiation instantiation, double firingTime)
fire
in interface IAction
fire
in class DefaultAction
instantiation
- Description of the ParameterfiringTime
- when this production was fired