parsedtree
Class Transition

java.lang.Object
  extended byparsedtree.Movement
      extended byparsedtree.Transition

public class Transition
extends Movement


Field Summary
 double followingBars
           
 BaseParticipantDefinition participant
           
 double priorBars
           
static int transitionTypeMove
          Constant indicates a 'moving' transition.
static int transitionTypeNormal
          Constant indicates a 'normal' transition.
static int transitionTypeShift
          Constant indicates a 'shifting' transition.
 int type
          The algorithm to be used to do the transition.
 
Constructor Summary
Transition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

participant

public BaseParticipantDefinition participant

priorBars

public double priorBars

followingBars

public double followingBars

type

public int type
The algorithm to be used to do the transition.


transitionTypeNormal

public static final int transitionTypeNormal
Constant indicates a 'normal' transition. The position is calculated according to where the participant would be without a transition, but then a delta is added to each of the three co-ordinates, with a delta multiplier that is zero when the transition starts and ends and is one at the transition point.

See Also:
Constant Field Values

transitionTypeMove

public static final int transitionTypeMove
Constant indicates a 'moving' transition. The position is calculated at the start and end of the transition. What the participant would have done during the transition period does not have any effect. This transition type is designed for when the participant is doing a 'move' both at the start and end of the transition. The participant is assumed to be facing in the direction that he/she is moving.

See Also:
Constant Field Values

transitionTypeShift

public static final int transitionTypeShift
Constant indicates a 'shifting' transition. The position is calculated at the start and end of the transition. What the participant would have done during the transition period does not have any effect. This transition type is similar to the moving transition but where the participant is not facing in the direction in which he/she is moving. The track is exactly the same as for the moving transition, but we must be sure to use the direction in which the participant is moving and not the direction in which the participant is facing. The direction in which the participant is facing changes continuously. The facing direction changes in the shortest direction. If this proves to be not adequate then we will need to add a 'turn' attribute.

See Also:
Constant Field Values
Constructor Detail

Transition

public Transition()


Copyright © 2003 Nigel Westbury