parsedtree
Class CollisionAvoider
java.lang.Object
parsedtree.Movement
parsedtree.CollisionAvoider
- public class CollisionAvoider
- extends Movement
Two 'moves' that may collide and must be adjusted. Dance instructions often
result in collisions of two people. These are resolved by rules such as
'ladies first', or 'person who started facing the active person crosses in
front of person who started behind the active person'. To avoid the need
for complex path adjustments and time adjustments in the dance
specification, one can instead simply say who yields to whom and let the
dance animation logic work out the details.
This class represents a pair of moves that may collide. The collision
should be avoided by adjusting the moves so that one person goes ahead of
the other.
|
Field Summary |
Move |
moveThatYields
The move for the participant who must yield to the other participant. |
Move |
moveWithRightOfWay
The move for the participant who has the right of way over the other
participant. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
moveWithRightOfWay
public Move moveWithRightOfWay
- The move for the participant who has the right of way over the other
participant.
moveThatYields
public Move moveThatYields
- The move for the participant who must yield to the other participant.
CollisionAvoider
public CollisionAvoider()
Copyright © 2003 Nigel Westbury