sdr 0.21

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

Packages that use Fraction
net.cscott.sdr This package contains the main class (App) 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.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()
           
 

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.addAction(Fraction time, Action target)
          Add a new timed action.
 void AnimDancer.addPosition(Fraction time, Position target)
          Add a new position target.
 TimedPosition AnimDancer.getNextPosition(Fraction time)
          Get the next position with time greater than or equal to the given time.
abstract  void AnimDancer.update(Fraction time)
          Update the node based on the current beat time.
 void CheckerDancer.update(Fraction time)
           
 

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 Rotation.modulus
          The 'modulus' of the rotation: indicates the amount of uncertainty in the direction.
 Fraction DancerPath.time
          The time this motion should take.
 Fraction TimedAction.time
          If isAbsolute is true, then the absolute time at which this formation should appear.
 Fraction TimedFormation.time
          If isAbsolute is true, then the absolute time at which this formation should appear.
 Fraction TimedPosition.time
          If isAbsolute is true, then the absolute time at which this formation should appear.
 Fraction Position.x
          Location.
 Fraction Position.y
          Location.
 

Methods in net.cscott.sdr.calls that return Fraction
 Fraction DancerActions.actionDuration()
           
 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
 ExactRotation ExactRotation.add(Fraction f)
          Add the given amount to this rotation direction.
 Rotation Rotation.add(Fraction f)
          Add the given amount to this rotation direction.
 void DancerActions.addAction(Dancer d, Fraction start, Fraction end, net.cscott.sdr.calls.DancerActions.Path p)
           
static Rotation Rotation.create(Fraction amount, Fraction modulo)
           
 Position Position.forwardStep(Fraction distance)
          Move the given distance in the facing direction.
static ExactRotation ExactRotation.fromXY(Fraction x, Fraction y)
          Convert an x/y displacement to a rotation, using our 'squared off' circle.
 Position Position.sideStep(Fraction distance)
          Move the given distance perpendicular to the facing direction.
 ExactRotation ExactRotation.subtract(Fraction f)
          Subtract the given amount from this rotation direction.
 Rotation Rotation.subtract(Fraction f)
          Subtract the given amount from this rotation direction.
 Position Position.turn(Fraction amount)
          Turn in place the given amount.
abstract  Position Warp.warp(Position p, Fraction time)
           
 

Constructors in net.cscott.sdr.calls with parameters of type Fraction
DancerPath(Position from, Position to, Point arcCenter, Fraction time, DancerPath.PointOfRotation pointOfRotation, Rotation rollDir, Rotation sweepDir)
          Create an immutable DancerPath object.
ExactRotation(Fraction amount)
          Constructor from a Fraction object.
Position(Fraction x, Fraction y, Rotation facing)
          Create a Position object from the given x and y coordinates and Rotation.
Rotation(Fraction amount, Fraction modulo)
          Private constructor from a Fraction object.
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 In.count
           
 Fraction Prim.time
          The number of beats which this motion should take.
 Fraction Prim.x
          Amount of movement in the 'x' direction (dancer's right/left).
 Fraction Prim.y
          Amount of movement in the 'y' direction (dancer forward and back).
 

Methods in net.cscott.sdr.calls.ast that return Fraction
 Fraction Apply.getNumberArg(int n)
           
 Fraction Condition.getNumberArg(int n)
           
 

Methods in net.cscott.sdr.calls.ast with parameters of type Fraction
 In In.build(Fraction count, Comp child)
          Factory: creates new In only if it would differ from this.
 Prim Prim.build(Prim.Direction dirX, Fraction x, Prim.Direction dirY, Fraction y, Prim.Direction dirRot, ExactRotation rot, Fraction time, boolean passRight, boolean forceArc)
          Factory: creates new Prim only if it would differ from this.
static Apply Apply.makeApply(String callName, Fraction number)
           
static Apply Apply.makeApply(String callName, Fraction number, Apply arg2)
           
static Apply Apply.makeApply(String callName, Fraction number, String s)
           
static Condition Condition.makeCondition(String condition, Fraction number)
           
 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
In(Fraction count, Comp child)
           
Prim(Prim.Direction dirX, Fraction x, Prim.Direction dirY, Fraction y, Prim.Direction dirRot, ExactRotation rot, Fraction time, boolean passRight, boolean forceArc)
           
 

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 C4Parser.a_cardinal()
           
 Fraction C4Parser.a_digit()
           
 Fraction C4Parser.a_fraction()
           
 Fraction C4Parser.a_number()
           
 

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

Methods in net.cscott.sdr.calls.transform that return Fraction
 Fraction CallFileBuilder.number(AST _t)
           
 

Methods in net.cscott.sdr.calls.transform with parameters of type Fraction
 SeqCall Fractional.visit(Apply apply, Fraction f)
           
 Apply RemoveIn.visit(Apply a, Fraction scale)
           
 In Fractional.visit(In in, Fraction f)
           
 Comp RemoveIn.visit(In in, Fraction f)
           
 Par RemoveIn.visit(Par p, Fraction f)
           
 Part Fractional.visit(Part p, Fraction f)
           
 Part RemoveIn.visit(Part part, Fraction scale)
           
 Prim Fractional.visit(Prim p, Fraction f)
           
 Prim RemoveIn.visit(Prim p, Fraction scale)
           
 Comp Fractional.visit(Seq s, Fraction f)
           
 Seq RemoveIn.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_FIFTHS
          Fraction representation of 4/5.
static Fraction Fraction.mONE
          Fraction representation of -1.
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_EIGHTHS
          Fraction representation of 3/8.
static Fraction Fraction.THREE_FIFTHS
          Fraction representation of 3/5.
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_QUARTERS
          Deprecated. This is an unreduced fraction for backwards-compatibility, and is prone to overflow during arithmetic. Use ONE_HALF instead.
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.
 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.
 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.
 Fraction Fraction.divide(Fraction fraction)
          Divide the value of this fraction by another.
 Fraction Fraction.divideBy(Fraction fraction)
          Deprecated. Renamed to divide()
 Fraction Fraction.multiply(Fraction fraction)
          Multiplies the value of this fraction by another.
 Fraction Fraction.multiplyBy(Fraction fraction)
          Deprecated. Renamed to multiply()
 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.21

Copyright (c) 2006 C. Scott Ananian