public interface ICommandTranslator
ChunkPattern
s into
IEfferentCommand
sModifier and Type | Method and Description |
---|---|
void |
adjust(ChunkTypeRequest request,
DeltaTracker tracker,
IEfferentCommand command,
IModel model)
adjust a command midflight
|
IEfferentObject |
getMuscle(ChunkTypeRequest request,
IModel model)
translates a set of slot values into a
IEfferentObject that
represents a muscle defined within the pattern. |
IEfferentObject |
getMuscle(java.lang.String muscleName,
IModel model)
translate a string name into an
IEfferentObject that represents the
muscle. |
IEfferentCommand |
translate(ChunkTypeRequest request,
IEfferentObject muscle,
IModel model)
translate a
ChunkPattern into an appropriate
IEfferentCommand . |
IEfferentObject getMuscle(java.lang.String muscleName, IModel model) throws java.lang.IllegalArgumentException
IEfferentObject
that represents the
muscle. This is called during a buffer query that has been scoped on a
specific muscle groupmuscleName
- model
- java.lang.IllegalArgumentException
- if no muscle is foundIEfferentObject getMuscle(ChunkTypeRequest request, IModel model) throws java.lang.IllegalArgumentException
IEfferentObject
that
represents a muscle defined within the pattern. Since many ACT-R movement
commands use multiple slots to define a muscle, this collapses them. (i.e.
translates hand right finger index into right-index). In addition to the
returned IEfferentObject
this method should also ensure that the
slots used to define the muscle are nulled out and the muscle slot is
specified.request
- model
- java.lang.IllegalArgumentException
IEfferentCommand translate(ChunkTypeRequest request, IEfferentObject muscle, IModel model) throws java.lang.IllegalArgumentException
ChunkPattern
into an appropriate
IEfferentCommand
. By setting the
MovementCommand.MOVEMENT_RATE
, the translator may provide a hint to
common reality regarding the actual execution time of the movement.request
- muscle
- model
- java.lang.IllegalArgumentException
void adjust(ChunkTypeRequest request, DeltaTracker tracker, IEfferentCommand command, IModel model) throws java.lang.IllegalArgumentException, javax.naming.OperationNotSupportedException
java.lang.IllegalArgumentException
javax.naming.OperationNotSupportedException