public class PeckTranslator extends AbstractManualTranslator
MINIMUM_FITTS_TIME, MINIMUM_MOVEMENT_TIME, PECK_FITTS_COEFFICIENT
Constructor and Description |
---|
PeckTranslator() |
Modifier and Type | Method and Description |
---|---|
protected double |
computeDistance(double[] origin,
double[] target) |
protected double[] |
getTarget(ChunkTypeRequest request,
IEfferentObject muscle) |
boolean |
handles(ChunkTypeRequest request)
returns true if this delegate can handle a command as specified by
this chunk pattern
|
IEfferentCommand |
translate(ChunkTypeRequest request,
IEfferentObject muscle,
IModel model)
translate a
ChunkPattern into an appropriate
IEfferentCommand . |
computeFitts, computeRate, getMinimumFittsTime, getMotorBurstTime, getMuscle, getPeckFittsCoefficient
adjust, getCachedMuscleNames, getMuscle, getTemplateNamed
public boolean handles(ChunkTypeRequest request)
ICommandTranslatorDelegate
protected double[] getTarget(ChunkTypeRequest request, IEfferentObject muscle)
protected double computeDistance(double[] origin, double[] target)
public IEfferentCommand translate(ChunkTypeRequest request, IEfferentObject muscle, IModel model) throws java.lang.IllegalArgumentException
ICommandTranslator
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.java.lang.IllegalArgumentException