sdr 0.7

Uses of Class
net.cscott.sdr.util.Fraction

Packages that use Fraction
net.cscott.sdr This package contains the main game class (App) and a text UI (PMSD), as well as interface definitions needed to tie the various pieces together. 
net.cscott.sdr.anim This package contains the 3d animation code, which uses the jME game engine. 
net.cscott.sdr.calls This package contains the square dance choreography engine, and the basic types and interfaces required to communicate with it. 
net.cscott.sdr.calls.ast This package contains the abstract syntax used for call definition and evaluation. 
net.cscott.sdr.calls.grm This package contains the tools needed to generate Sphinx and ANTLRv3 grammars for "natural language calls" from the information in the call lists about grammar and precedence for individual calls. 
net.cscott.sdr.calls.lists This package contains call lists and generated natural-language parsers for the various square dance programs. 
net.cscott.sdr.calls.parser ANTLRv3 grammars for parsing call definition files and AST representations. 
net.cscott.sdr.calls.transform This package contains code to parse call lists and transform call abstract syntax in various ways. 
net.cscott.sdr.sound This package contains the accompaniment music playback and timing engine. 
net.cscott.sdr.util This package contains useful utility code. 
 

Uses of Fraction in net.cscott.sdr
 

Methods in net.cscott.sdr that return Fraction
 Fraction BeatTimer.getCurrentBeat()
           
 Fraction DanceFloor.waitForBeat(Fraction beat)
          Block waiting until notifyBeat() is called with a beat greater than or equal to that specified.
 

Methods in net.cscott.sdr with parameters of type Fraction
 DancerBezierPath DanceFloor.location(Dancer d, Fraction beatTime)
          Current (interpolated) path for the given dancer.
 void DanceFloor.notifyBeat(Fraction beat)
          Notify the choreography engine that the given beat is now occurring.
 Fraction DanceFloor.waitForBeat(Fraction beat)
          Block waiting until notifyBeat() is called with a beat greater than or equal to that specified.
 

Uses of Fraction in net.cscott.sdr.anim
 

Methods in net.cscott.sdr.anim that return Fraction
 Fraction SilentBeatTimer.getCurrentBeat()
           
 

Methods in net.cscott.sdr.anim with parameters of type Fraction
 void AnimDancer.update(Fraction time)
          Update the node based on the current beat time.
 void CheckerDancer.update(Fraction time, float x, float y, float rot)
           
abstract  void AnimDancer.update(Fraction time, float x, float y, float rot)
          Subclasses should implement this to draw the dancer.
 

Uses of Fraction in net.cscott.sdr.calls
 

Fields in net.cscott.sdr.calls declared as Fraction
 Fraction Rotation.amount
          The amount of the rotation.
 Fraction DancerBezierPath.duration
           
 Fraction Rotation.modulus
          The 'modulus' of the rotation: indicates the amount of uncertainty in the direction.
 Fraction BadCallException.priority
          Priority field helps us distinguish ordinary "you can't do that from here" exceptions from special messages from If nodes, like "facing recycle is not valid at Plus".
 Fraction DancerBezierPath.startTime
           
 Fraction Timed.time
          If isAbsolute is true, then the absolute time at which this formation should appear.
 Fraction DancerPath.time
          The time this motion should take.
 Fraction Position.x
          Location.
 Fraction Position.y
          Location.
 

Fields in net.cscott.sdr.calls with type parameters of type Fraction
static ExprFunc<Fraction> ExprList._ADD_NUM
          Simple math: addition.
static ExprFunc<Fraction> ExprList._DIVIDE_NUM
          Simple math: division.
static ExprFunc<Fraction> ExprList._FLOOR
          Simple math: return integer part of a fraction.
static ExprFunc<Fraction> ExprList._FRACTION
          Simple math: return fractional part of a number.
static ExprFunc<Fraction> ExprList._MOD_NUM
          Simple math: modulo.
static ExprFunc<Fraction> ExprList._MULTIPLY_NUM
          Simple math: multiplication.
static ExprFunc<Fraction> ExprList._SUBTRACT_NUM
          Simple math: subtraction.
static ExprFunc<Fraction> ExprList.NUM_DANCERS
           
 

Methods in net.cscott.sdr.calls that return Fraction
 Fraction DanceState.currentTime()
          Return the time of the last formation.
 Fraction ExactRotation.minSweep(ExactRotation er)
          Compute the minimum angle (in absolute value) between this heading and the given heading er.
 Fraction Position.roll()
          Return a roll amount from the Position.Flag.ROLL_LEFT and Position.Flag.ROLL_RIGHT Position.Flags set on this Position.
 Fraction Position.sweep()
          Return a sweep amount from the Position.Flag.SWEEP_LEFT and Position.Flag.SWEEP_RIGHT Position.Flags set on this Position.
 Fraction ExactRotation.toX()
          Return the X offset of a one-unit step in the rotation direction.
 Fraction ExactRotation.toY()
          Return the Y offset of a one-unit step in the rotation direction.
 

Methods in net.cscott.sdr.calls with parameters of type Fraction
 Rotation Rotation.add(Fraction f)
          Add the given amount to this rotation direction.
 ExactRotation ExactRotation.add(Fraction f)
          Add the given amount to this rotation direction.
 DancerBezierPath DancerPath.bezier(Fraction startTime)
          Return a low-level DancerBezierPath for this DancerPath.
static Rotation Rotation.create(Fraction amount, Fraction modulo)
           
 Formation DanceState.formationAt(Fraction time)
          Return the latest formation at or preceding the given time.
 Position Position.forwardStep(Fraction distance, boolean stepIn)
          Move the given distance in the facing direction, clearing any Position.Flags.
static ExactRotation ExactRotation.fromXY(Fraction x, Fraction y)
          Convert an x/y displacement to a rotation, using our 'squared off' circle.
 Position Position.relocate(Fraction x, Fraction y, Rotation facing)
          Move a Position, preserving its flags.
 DancerPath DancerPath.scaleTime(Fraction amount)
          Return an equivalent DancerPath that completes in an adjusted amount of time.
 Position Position.sideStep(Fraction distance, boolean stepIn)
          Move the given distance perpendicular to the facing direction, clearing any Position.Flags.
 Rotation Rotation.subtract(Fraction f)
          Subtract the given amount from this rotation direction.
 ExactRotation ExactRotation.subtract(Fraction f)
          Subtract the given amount from this rotation direction.
 void DanceState.syncDancers(Fraction time)
          Add "do nothing" actions as necessary so that every dancer's next action will occur at the given time.
 Position Position.turn(Fraction amount, boolean faceIn)
          Turn in place the given amount, clearing any Position.Flags.
 Position Position.turn(Fraction amount, boolean faceIn, Position reference)
          Turn in place the given amount, clearing any Position.Flags.
 

Constructors in net.cscott.sdr.calls with parameters of type Fraction
BadCallException(String s, Fraction priority)
           
DancerBezierPath(Fraction startTime, Fraction duration, Bezier.Bezier2D location, Bezier.Bezier2D direction)
           
DancerPath(Position from, Position to, Fraction time, DancerPath.PointOfRotation pointOfRotation, Collection<DancerPath.Flag> flags)
           
DancerPath(Position from, Position to, Fraction time, DancerPath.PointOfRotation pointOfRotation, DancerPath.Flag... flags)
          Create an immutable DancerPath object.
ExactRotation(Fraction amount)
          Constructor from a Fraction object.
Position(Fraction x, Fraction y, Rotation facing, Position.Flag... flags)
          Create a Position object from the given x and y coordinates, facing Rotation, and Position.Flags.
Position(Fraction x, Fraction y, Rotation facing, Set<Position.Flag> flags)
          Create a Position object from the given x and y coordinates, facing Rotation, and the given Set of Position.Flags.
Rotation(Fraction amount, Fraction modulo)
          Private constructor from a Fraction object.
Timed(Fraction time, boolean isAbsolute)
           
TimedAction(Action action, Fraction time, boolean isAbsolute)
           
TimedFormation(Formation formation, Fraction time, boolean isAbsolute)
           
TimedPosition(Position position, Fraction time, boolean isAbsolute)
           
 

Uses of Fraction in net.cscott.sdr.calls.ast
 

Fields in net.cscott.sdr.calls.ast declared as Fraction
 Fraction If.priority
          Priority of the message: if a parallel operation causes failures in multiple places, the one with the highest priority will be reported.
 Fraction Prim.time
          The number of beats which this motion should take.
 Fraction Prim.x
          Amount of movement in the 'sashay' direction (dancer's right/left).
 Fraction Prim.y
          Amount of movement in the 'walking' direction (dancer forward and back).
 

Methods in net.cscott.sdr.calls.ast with parameters of type Fraction
 Prim Prim.build(Prim.Direction dirX, Fraction x, Prim.Direction dirY, Fraction y, Prim.Direction dirRot, ExactRotation rot, Fraction time, Prim.Flag... flags)
          Factory: creates new Prim only if it would differ from this.
static Expr Expr.literal(Fraction f)
           
 Prim Prim.scaleTime(Fraction f)
          Create a new Prim, identical to this one except that the time is scaled by the given fraction.
 

Constructors in net.cscott.sdr.calls.ast with parameters of type Fraction
If(If.When when, Expr condition, Comp child, String msg, Fraction priority)
           
Part(Part.Divisibility divisibility, Fraction howMany, Comp child)
           
Prim(Prim.Direction dirX, Fraction x, Prim.Direction dirY, Fraction y, Prim.Direction dirRot, ExactRotation rot, Fraction time, Prim.Flag... flags)
           
 

Uses of Fraction in net.cscott.sdr.calls.grm
 

Fields in net.cscott.sdr.calls.grm declared as Fraction
 Fraction Rule.prec
           
 

Constructors in net.cscott.sdr.calls.grm with parameters of type Fraction
Rule(String lhs, Grm rhs, Fraction prec)
           
 

Uses of Fraction in net.cscott.sdr.calls.lists
 

Methods in net.cscott.sdr.calls.lists that return Fraction
 Fraction PlusGrammarParser.a_digit_greater_than_two()
           
 Fraction MainstreamGrammarParser.a_digit_greater_than_two()
           
 Fraction C4GrammarParser.a_digit_greater_than_two()
           
 Fraction C3bGrammarParser.a_digit_greater_than_two()
           
 Fraction C3aGrammarParser.a_digit_greater_than_two()
           
 Fraction C2GrammarParser.a_digit_greater_than_two()
           
 Fraction C1GrammarParser.a_digit_greater_than_two()
           
 Fraction BasicGrammarParser.a_digit_greater_than_two()
           
 Fraction A2GrammarParser.a_digit_greater_than_two()
           
 Fraction A1GrammarParser.a_digit_greater_than_two()
           
 Fraction PlusGrammarParser.a_digit()
           
 Fraction MainstreamGrammarParser.a_digit()
           
 Fraction C4GrammarParser.a_digit()
           
 Fraction C3bGrammarParser.a_digit()
           
 Fraction C3aGrammarParser.a_digit()
           
 Fraction C2GrammarParser.a_digit()
           
 Fraction C1GrammarParser.a_digit()
           
 Fraction BasicGrammarParser.a_digit()
           
 Fraction A2GrammarParser.a_digit()
           
 Fraction A1GrammarParser.a_digit()
           
 Fraction PlusGrammarParser.a_fraction()
           
 Fraction MainstreamGrammarParser.a_fraction()
           
 Fraction C4GrammarParser.a_fraction()
           
 Fraction C3bGrammarParser.a_fraction()
           
 Fraction C3aGrammarParser.a_fraction()
           
 Fraction C2GrammarParser.a_fraction()
           
 Fraction C1GrammarParser.a_fraction()
           
 Fraction BasicGrammarParser.a_fraction()
           
 Fraction A2GrammarParser.a_fraction()
           
 Fraction A1GrammarParser.a_fraction()
           
 Fraction PlusGrammarParser.a_number()
           
 Fraction MainstreamGrammarParser.a_number()
           
 Fraction C4GrammarParser.a_number()
           
 Fraction C3bGrammarParser.a_number()
           
 Fraction C3aGrammarParser.a_number()
           
 Fraction C2GrammarParser.a_number()
           
 Fraction C1GrammarParser.a_number()
           
 Fraction BasicGrammarParser.a_number()
           
 Fraction A2GrammarParser.a_number()
           
 Fraction A1GrammarParser.a_number()
           
 Fraction PlusGrammarParser.integer()
           
 Fraction MainstreamGrammarParser.integer()
           
 Fraction C4GrammarParser.integer()
           
 Fraction C3bGrammarParser.integer()
           
 Fraction C3aGrammarParser.integer()
           
 Fraction C2GrammarParser.integer()
           
 Fraction C1GrammarParser.integer()
           
 Fraction BasicGrammarParser.integer()
           
 Fraction A2GrammarParser.integer()
           
 Fraction A1GrammarParser.integer()
           
 Fraction PlusGrammarParser.one_times()
           
 Fraction MainstreamGrammarParser.one_times()
           
 Fraction C4GrammarParser.one_times()
           
 Fraction C3bGrammarParser.one_times()
           
 Fraction C3aGrammarParser.one_times()
           
 Fraction C2GrammarParser.one_times()
           
 Fraction C1GrammarParser.one_times()
           
 Fraction BasicGrammarParser.one_times()
           
 Fraction A2GrammarParser.one_times()
           
 Fraction A1GrammarParser.one_times()
           
 

Uses of Fraction in net.cscott.sdr.calls.parser
 

Fields in net.cscott.sdr.calls.parser declared as Fraction
 Fraction AstParser.in_out_num_return.amt
           
 

Methods in net.cscott.sdr.calls.parser that return Fraction
 Fraction AstParser.fraction()
           
 Fraction CallFileBuilder.number()
           
 Fraction AstParser.number()
           
 Fraction CallFileBuilder.rotation()
           
 

Uses of Fraction in net.cscott.sdr.calls.transform
 

Methods in net.cscott.sdr.calls.transform with parameters of type Fraction
 Apply RemoveIn.visit(Apply a, Fraction f)
           
 SeqCall Fractional.visit(Apply apply, Fraction f)
           
 Comp Fractional.visit(If iff, Fraction f)
           
 Comp RemoveIn.visit(In in, Fraction f)
           
 In Fractional.visit(In in, Fraction f)
           
 Opt RemoveIn.visit(Opt o, Fraction f)
           
 Par RemoveIn.visit(Par p, Fraction f)
           
 Part Fractional.visit(Part p, Fraction f)
           
 Prim RemoveIn.visit(Prim p, Fraction f)
           
 Prim Fractional.visit(Prim p, Fraction f)
           
 Seq RemoveIn.visit(Seq s, Fraction f)
           
 Comp Fractional.visit(Seq s, Fraction f)
           
 

Uses of Fraction in net.cscott.sdr.sound
 

Methods in net.cscott.sdr.sound that return Fraction
 Fraction MidiTimer.getCurrentBeat()
           
 

Uses of Fraction in net.cscott.sdr.util
 

Fields in net.cscott.sdr.util declared as Fraction
 Fraction Interval.end
           
static Fraction Fraction.FIVE_EIGHTHS
          Fraction representation of 5/8.
static Fraction Fraction.FOUR
          Fraction representation of 4.
static Fraction Fraction.FOUR_FIFTHS
          Fraction representation of 4/5.
static Fraction Fraction.mFOUR
          Fraction representation of -4.
static Fraction Fraction.mONE
          Fraction representation of -1.
static Fraction Fraction.mONE_HALF
          Fraction representation of -1/2.
static Fraction Fraction.mONE_QUARTER
          Fraction representation of -1/4.
static Fraction Fraction.mONE_THIRD
          Fraction representation of -1/3.
static Fraction Fraction.mTHREE
          Fraction representation of -3.
static Fraction Fraction.mTHREE_HALVES
          Fraction representation of -3/2.
static Fraction Fraction.mTHREE_QUARTERS
          Fraction representation of -3/4.
static Fraction Fraction.mTWO
          Fraction representation of -2.
static Fraction Fraction.mTWO_THIRDS
          Fraction representation of -2/3.
static Fraction Fraction.ONE
          Fraction representation of 1.
static Fraction Fraction.ONE_EIGHTH
          Fraction representation of 1/8.
static Fraction Fraction.ONE_FIFTH
          Fraction representation of 1/5.
static Fraction Fraction.ONE_HALF
          Fraction representation of 1/2.
static Fraction Fraction.ONE_QUARTER
          Fraction representation of 1/4.
static Fraction Fraction.ONE_THIRD
          Fraction representation of 1/3.
static Fraction Fraction.SEVEN_EIGHTHS
          Fraction representation of 7/8.
 Fraction Interval.start
           
static Fraction Fraction.THREE
          Fraction representation of 3.
static Fraction Fraction.THREE_EIGHTHS
          Fraction representation of 3/8.
static Fraction Fraction.THREE_FIFTHS
          Fraction representation of 3/5.
static Fraction Fraction.THREE_HALVES
          Fraction representation of 3/2.
static Fraction Fraction.THREE_QUARTERS
          Fraction representation of 3/4.
static Fraction Fraction.TWO
          Fraction representation of 2.
static Fraction Fraction.TWO_FIFTHS
          Fraction representation of 2/5.
static Fraction Fraction.TWO_THIRDS
          Fraction representation of 2/3.
 Fraction Point.x
           
 Fraction Point.y
           
static Fraction Fraction.ZERO
          Fraction representation of 0.
 

Methods in net.cscott.sdr.util that return Fraction
 Fraction Fraction.abs()
          Gets a fraction that is the positive equivalent of this one.
 Fraction Fraction.add(Fraction fraction)
          Adds the value of this fraction to another.
static Fraction Bezier.cubicDeriv(Fraction p0, Fraction p1, Fraction p2, Fraction p3, Fraction t)
          Evaluate the derivative of a cubic bezier with the given four control points.
static Fraction Bezier.cubicInterp(Fraction p0, Fraction p1, Fraction p2, Fraction p3, Fraction t)
          Evaluate a cubic bezier with the given four control points.
 Fraction Fraction.divide(Fraction fraction)
          Divide the value of this fraction by another.
 Fraction Fraction.divideBy(Fraction fraction)
          Deprecated. Renamed to divide()
static Fraction Fraction.getFraction(double value)
          Deprecated. Renamed this method to valueOf() for consistency.
static Fraction Fraction.getFraction(int numerator, int denominator)
          Deprecated. For reasons of backwards-compatibility, this method does not simplify fractions. The Fraction objects returned are thus subject to overflow. It should not be used in new code. Use valueOf() instead.
static Fraction Fraction.getFraction(int whole, int numerator, int denominator)
          Deprecated. For reasons of backwards-compatibility, this method does not simplify fractions. The Fraction objects returned are thus subject to overflow. It should not be used in new code. Use valueOf() instead.
static Fraction Fraction.getFraction(String str)
          Deprecated. For reasons of backwards-compatibility, this method does not simplify fractions. The Fraction objects returned are thus subject to overflow. It should not be used in new code. Use valueOf() instead.
static Fraction Fraction.getReducedFraction(int numerator, int denominator)
          Deprecated. All fractions are now stored as reduced fractions; use the valueOf() method instead.
 Fraction Box.height()
           
 Fraction Fraction.invert()
          Gets a fraction that is the inverse (1/fraction) of this one.
 Fraction Fraction.multiply(Fraction fraction)
          Multiplies the value of this fraction by another.
 Fraction Fraction.multiplyBy(Fraction fraction)
          Deprecated. Renamed to multiply()
 Fraction Fraction.negate()
          Gets a fraction that is the negative (-fraction) of this one.
 Fraction Fraction.pow(int power)
          Gets a fraction that is raised to the passed in power.
static Fraction Bezier.quadInterp(Fraction p0, Fraction p1, Fraction p2, Fraction t)
          Evaluate a quadratic bezier with the given three control points.
 Fraction Fraction.quantize(int nDenom)
          Quantize the given fraction to the nearest x/nDenom.
 Fraction Fraction.reduce()
          Deprecated. Unless you are using deprecated methods this operation is a no-op.
 Fraction Fraction.subtract(Fraction fraction)
          Subtracts the value of another fraction from the value of this one.
static Fraction Fraction.valueOf(double value)
          Creates a Fraction instance from a double value.
static Fraction Fraction.valueOf(int value)
          Creates a Fraction instance from a int value.
static Fraction Fraction.valueOf(int numerator, int denominator)
          Creates a Fraction instance with the 2 parts of a fraction Y/Z.
static Fraction Fraction.valueOf(int whole, int numerator, int denominator)
          Creates a Fraction instance with the 3 parts of a fraction X Y/Z.
static Fraction Fraction.valueOf(String str)
          Creates a Fraction from a String.
 Fraction Box.width()
           
 

Methods in net.cscott.sdr.util with parameters of type Fraction
 Fraction Fraction.add(Fraction fraction)
          Adds the value of this fraction to another.
 int Fraction.compareTo(Fraction other)
          Compares this object to another based on size.
static Fraction Bezier.cubicDeriv(Fraction p0, Fraction p1, Fraction p2, Fraction p3, Fraction t)
          Evaluate the derivative of a cubic bezier with the given four control points.
static Fraction Bezier.cubicInterp(Fraction p0, Fraction p1, Fraction p2, Fraction p3, Fraction t)
          Evaluate a cubic bezier with the given four control points.
 Fraction Fraction.divide(Fraction fraction)
          Divide the value of this fraction by another.
 Fraction Fraction.divideBy(Fraction fraction)
          Deprecated. Renamed to divide()
 Point Bezier.Bezier2D.evaluate(Fraction t)
          Evaluate the given Bezier at the given time parameter, which should be in the range [0, 1].
 Fraction Fraction.multiply(Fraction fraction)
          Multiplies the value of this fraction by another.
 Point Point.multiply(Fraction f)
           
 Fraction Fraction.multiplyBy(Fraction fraction)
          Deprecated. Renamed to multiply()
static Fraction Bezier.quadInterp(Fraction p0, Fraction p1, Fraction p2, Fraction t)
          Evaluate a quadratic bezier with the given three control points.
 Fraction Fraction.subtract(Fraction fraction)
          Subtracts the value of another fraction from the value of this one.
 

Constructors in net.cscott.sdr.util with parameters of type Fraction
Interval(Fraction start, Fraction end)
          Create an Interval from start to end.
Point(Fraction x, Fraction y)
           
 


sdr 0.7

Copyright © 2006-2009 C. Scott Ananian