public class SetAction extends DefaultAction implements ISlotContainer, IBufferAction
Modifier and Type | Class and Description |
---|---|
class |
SetAction.SetActionTimedEvent |
Constructor and Description |
---|
SetAction(java.lang.String bufferName,
java.lang.Object referant) |
SetAction(java.lang.String bufferName,
java.lang.Object referant,
java.util.Collection<? extends ISlot> slots) |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(ISlot slot)
Adds a slot
|
IAction |
bind(VariableBindings variableBindings)
Bind is called during the creation of an instantiation of a produciton.
|
protected void |
bindChunk(VariableBindings bindings) |
void |
dispose()
Description of the Method
|
double |
fire(IInstantiation instantiation,
double firingTime)
Description of the Method
|
java.lang.String |
getBufferName() |
java.lang.Object |
getReferant() |
java.util.Collection<? extends ISlot> |
getSlots()
return a duplicate copy of all the slots
|
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> container) |
void |
removeSlot(ISlot slot)
remove a slot
|
void |
setBufferName(java.lang.String bufferName)
set the name of the buffer that this action manipulates
|
void |
setReferant(java.lang.Object ref) |
bindSlotValues, resolve, updateSlots
public SetAction(java.lang.String bufferName, java.lang.Object referant)
public SetAction(java.lang.String bufferName, java.lang.Object referant, java.util.Collection<? extends ISlot> slots)
public void dispose()
DefaultAction
dispose
in interface IAction
dispose
in class DefaultAction
public void addSlot(ISlot slot)
ISlotContainer
addSlot
in interface ISlotContainer
slot
- The feature to be added to the ISlot attributepublic java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots
in interface ISlotContainer
public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
getSlots
in interface ISlotContainer
public void removeSlot(ISlot slot)
ISlotContainer
removeSlot
in interface ISlotContainer
slot
- Description of Parameterpublic java.lang.String getBufferName()
getBufferName
in interface IBufferAction
public void setBufferName(java.lang.String bufferName)
IBufferAction
setBufferName
in interface IBufferAction
public java.lang.Object getReferant()
public void setReferant(java.lang.Object ref)
public IAction bind(VariableBindings variableBindings) throws CannotInstantiateException
IAction
bind
in interface IAction
CannotInstantiateException
protected void bindChunk(VariableBindings bindings) throws CannotInstantiateException
CannotInstantiateException
public double fire(IInstantiation instantiation, double firingTime)
DefaultAction
fire
in interface IAction
fire
in class DefaultAction
instantiation
- Description of the ParameterfiringTime
- when this production was fired