All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class primitives.machines.ScMultForZero

java.lang.Object
   |
   +----primitives.machines.ScMultForZero

public class ScMultForZero
extends Object
implements FunctionalLinkage
Kapovich & Milson's modification of the ScalarMultiplier Linkage around a degenerate input location (0,0) The Linkage uses the formula:


Variable Index

 o activeJoint
The enumerated joint the mouse pointer is over
 o b
The real vector of translation
 o def
 o i
used internaly by setInputJoints method
 o inputs
 o lamda
The scalar multiplier
 o linkages
An enumeration of the 3 linkages composing this linkage:
linkages[0]=translators[0]
linkages[1]=scMult;
linkages[2]=translators[1]

  
 o origin
The location on the canvas of the relative origin
 o scMult
 o tInputs
 o translators
An array containing the 2 Translator1 objects used by this linkage.

Constructor Index

 o ScMultForZero(Rectangle, double)

Method Index

 o forceInputJoints(Coordinate[])
 o getActiveJoint()
 o getActiveStr(int)
 o getInputJoints()
 o getOutputJoints()
 o getParameters()
 o mouseDragged(MouseEvent)
 o mouseMoved(MouseEvent)
 o redraw(Graphics)
Draws a Scalar Multiplier around Zero linkage
 o setActiveJoint(int)
 o setInputJoints(Coordinate[])
 o setParameters(double[])
Not implemented

Variables

 o translators
 Translator1 translators[]
An array containing the 2 Translator1 objects used by this linkage.

 o scMult
 ScalarMultiplier1 scMult
 o linkages
 final FunctionalLinkage linkages[]
An enumeration of the 3 linkages composing this linkage:
linkages[0]=translators[0]
linkages[1]=scMult;
linkages[2]=translators[1]

 o origin
 Point origin
The location on the canvas of the relative origin

 o b
 int b
The real vector of translation

 o lamda
 double lamda
The scalar multiplier

 o inputs
 Coordinate inputs[]
 o i
 private int i
used internaly by setInputJoints method

 o tInputs
 Coordinate tInputs[]
 o activeJoint
 it activeJoint
The enumerated joint the mouse pointer is over

 o def
 static final String def

Constructors

 o ScMultForZero
 public ScMultForZero(Rectangle d,
                      double scalar)
Parameters:
d - the rectangle to draw this object in
scalar - the scalar multiplier to be used

Methods

 o forceInputJoints
 public Coordinate[] forceInputJoints(Coordinate inputs[])
See Also:
forceInputJoints
 o setInputJoints
 public Coordinate[] setInputJoints(Coordinate inputs[]) throws MachineException
Throws: MachineException
.
See Also:
setInputJoints
 o getInputJoints
 public Coordinate[] getInputJoints()
See Also:
getInputJoints
 o getOutputJoints
 public Coordinate[] getOutputJoints()
See Also:
getOutputJoints
 o setParameters
 public void setParameters(double paramaters[])
Not implemented

 o getParameters
 public double[] getParameters()
Returns:
null
 o redraw
 public void redraw(Graphics g)
Draws a Scalar Multiplier around Zero linkage

Parameters:
g - the graphic context to draw to.
See Also:
MachineListener
 o mouseMoved
 public int mouseMoved(MouseEvent m)
See Also:
mouseMoved
 o mouseDragged
 public void mouseDragged(MouseEvent m) throws MachineException
Throws: MachineException
.
See Also:
mouseDragged
 o getActiveStr
 public String getActiveStr(int activeJoint)
See Also:
getActiveStr
 o getActiveJoint
 public int getActiveJoint()
See Also:
getActiveJoint
 o setActiveJoint
 public void setActiveJoint(int activeJoint)
See Also:
setActiveJoint

All Packages  Class Hierarchy  This Package  Previous  Next  Index