All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class primitives.machines.NarmsMachineProof

java.lang.Object
   |
   +----primitives.machines.Machine
           |
           +----primitives.machines.NarmsMachine
                   |
                   +----primitives.machines.NarmsMachineProof

public class NarmsMachineProof
extends NarmsMachine
implements CircularMotion
A class which implements methods for the CircularMotion inteface and adds labels to the arms of the Narmsmachine. Used by i-armsProof applets

See Also:
CircularMotion

Variable Index

 o A
Strings used as arms labels.
 o B
 o C
 o D
 o dalpha
Stores the change rate.
 o L
 o limits
Stores the limit angles of motion [should be declared private].
 o U

Constructor Index

 o NarmsMachineProof(Dimension, int, double)

Method Index

 o finalize()
Sets object fields to null
 o getChangeRate()
 o getCurrentAngle()
 o getTotalChange()
 o redraw(Graphics)
Draws the machine to a graphic context.
 o setChangeRate(double)
Sets the change rate of this CircularMotion Object.
 o testRun()
preforms a virtual motion to compute the angle limits of the objects motion.

Variables

 o limits
 public double limits[]
Stores the limit angles of motion [should be declared private].

 o dalpha
 private double dalpha
Stores the change rate.

 o A
 static final String A
Strings used as arms labels.

 o B
 static final String B
 o C
 static final String C
 o D
 static final String D
 o U
 static final String U
 o L
 static final String L

Constructors

 o NarmsMachineProof
 public NarmsMachineProof(Dimension d,
                          int arms,
                          double ratio)
See Also:
NarmsMachine

Methods

 o setChangeRate
 public void setChangeRate(double a)
Sets the change rate of this CircularMotion Object.

Parameters:
a - the the new change rate.
See Also:
CircularMotion
 o getChangeRate
 public double getChangeRate()
Returns:
the current change rate of this object.
See Also:
CircularMotion
 o getTotalChange
 public double getTotalChange()
Returns:
the total change of this object.
See Also:
CircularMotion
 o getCurrentAngle
 public double getCurrentAngle()
Returns:
the current angle of the state of this object.
Overrides:
getCurrentAngle in class NarmsMachine
See Also:
CircularMotion
 o testRun
 public void testRun()
preforms a virtual motion to compute the angle limits of the objects motion.

 o redraw
 public void redraw(Graphics g)
Draws the machine to a graphic context.

Parameters:
g - the graphic context to draw to.
Overrides:
redraw in class NarmsMachine
See Also:
redraw
 o finalize
 public void finalize() throws Throwable
Sets object fields to null

Throws: Throwable
.
Overrides:
finalize in class NarmsMachine

All Packages  Class Hierarchy  This Package  Previous  Next  Index