All Packages Class Hierarchy This Package Previous Next Index
Class primitives.machines.Inversor1
java.lang.Object
|
+----primitives.machines.Machine
|
+----primitives.machines.Inversor1
- public class Inversor1
- extends Machine
- implements FunctionalLinkage
A class encapsulating an Inversor Linkage:ouput=conjugate(1/input)
- See Also:
- FunctionalLinkage
-
a
- The length of the bars connecting the anchor & the supporting joints
-
activeJoint
- The acitive joint is the joint the mouse pointer is over.
-
b
- The length of the bars connecting the supporting joints and the input/output joints
-
def
-
-
inputs
- Store the location of the input joint
-
inputStr
-
-
jointStr1
-
-
origin
- The location on the canvas of the relative orign
-
output
- Stores a copy of the output joint location
-
outputStr
-
-
parameters
- stores a copy of
a
and b
-
radius
- The radius of inversion
-
temp
- Used by mouseMoved method
-
Inversor1(Rectangle)
-
-
forceInputJoints(Coordinate[])
-
-
getActiveJoint()
-
-
getActiveStr(int)
-
-
getInputJoints()
-
-
getOutputJoints()
-
-
getParameters()
-
-
mouseDragged(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
redraw(Graphics)
- Implementation of the MachineListener interface.
-
setActiveJoint(int)
-
-
setInputJoints(Coordinate[])
-
-
setParameters(double[])
-
a
double a
- The length of the bars connecting the anchor & the supporting joints
b
double b
- The length of the bars connecting the supporting joints and the input/output joints
radius
double radius
- The radius of inversion
output
Coordinate output[]
- Stores a copy of the output joint location
inputs
Coordinate inputs[]
- Store the location of the input joint
parameters
double parameters[]
- stores a copy of
a
and b
- See Also:
- a, b
origin
Point origin
- The location on the canvas of the relative orign
activeJoint
int activeJoint
- The acitive joint is the joint the mouse pointer is over.
- See Also:
- mouseMoved
temp
private Coordinate temp
- Used by mouseMoved method
def
static final String def
inputStr
static final String inputStr
outputStr
static final String outputStr
jointStr1
static final String jointStr1
Inversor1
public Inversor1(Rectangle d)
setParameters
public void setParameters(double parameters[]) throws MachineException
- Parameters:
- parameters - contains the new values for a and b.
- Throws: MachineException
- if a>radius.
- See Also:
- setParameters
getParameters
public double[] getParameters()
- Returns:
- a and b.
- See Also:
- getParameters
forceInputJoints
public Coordinate[] forceInputJoints(Coordinate inputs[])
- See Also:
- forceInputJoints
setInputJoints
public Coordinate[] setInputJoints(Coordinate input[]) throws MachineException
- Throws: MachineException
- if the new location for the input joint is not valid.
- See Also:
- setInputJoints
getInputJoints
public Coordinate[] getInputJoints()
- See Also:
- getInputJoints
getOutputJoints
public Coordinate[] getOutputJoints()
- See Also:
- getInputJoints
redraw
public void redraw(Graphics g)
- Implementation of the MachineListener interface.
- Overrides:
- redraw in class Machine
mouseMoved
public int mouseMoved(MouseEvent m)
- See Also:
- mouseMoved
mouseDragged
public void mouseDragged(MouseEvent m) throws MachineException
- Throws: MachineException
- if the new location for the active joint is not valid.
- See Also:
- mouseDragged
getActiveStr
public String getActiveStr(int activeJoint)
- See Also:
- getActiveStr
getActiveJoint
public int getActiveJoint()
- See Also:
- getActiveJoint
setActiveJoint
public void setActiveJoint(int activeJoint)
- See Also:
- setActiveJoint
All Packages Class Hierarchy This Package Previous Next Index