All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class primitives.machines.Multiplier

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

public class Multiplier
extends Object
implements FunctionalLinkage
A linkage used to calculate the square of a complex number by using the formula:

See Also:
FunctiionalLinkage, Translator1, ScalarMultiplier1, Inversor1, Adder

Variable Index

 o activeLinkage
The active linkage is the linkage which owns the joint the mouse pointer is over.
 o adder
 o adderInputs
 o anti
Preforms multiplication by -1
 o antiInputs
 o def
 o i
Used internaly by setInputJoints method
 o inputs
 o inver3Inputs
 o inversInputs
 o inversors
Array of the 3 Inversor1 objects used by this object
 o linkages
An enumeration of the 8 FunctionalLinkage objects, memebers of Multiplier The array points to the following objects:
linkages[0-1]=translators[0-1]
linkages[2-3] = inversors[0-1];
linkages[4] = anti;
linkages[5] = adder;
linkages[6] = inversors[2];
linkages[7] = translators[2];
 o trans3Inputs
 o transInputs
 o translators
array of the 3 Translator1 objects used by this object.

Constructor Index

 o Multiplier(Rectangle)

Method Index

 o forceInputJoints(Coordinate[])
 o getActiveJoint()
 o getActiveStr(int)
 o getInputJoints()
 o getOutputJoints()
 o getParameters()
Not implemeted
 o mouseDragged(MouseEvent)
 o mouseMoved(MouseEvent)
 o redraw(Graphics)
Draws a Squaring Linkage.
 o setActiveJoint(int)
Not implemented.
 o setInputJoints(Coordinate[])
 o setParameters(double[])
Not implemented.

Variables

 o translators
 Translator1 translators[]
array of the 3 Translator1 objects used by this object.

 o inversors
 Inversor1 inversors[]
Array of the 3 Inversor1 objects used by this object

 o anti
 ScalarMultiplier1 anti
Preforms multiplication by -1

 o adder
 Adder adder
 o linkages
 final FunctionalLinkage linkages[]
An enumeration of the 8 FunctionalLinkage objects, memebers of Multiplier The array points to the following objects:
linkages[0-1]=translators[0-1]
linkages[2-3] = inversors[0-1];
linkages[4] = anti;
linkages[5] = adder;
linkages[6] = inversors[2];
linkages[7] = translators[2];

 o inputs
 Coordinate inputs[]
 o transInputs
 Coordinate transInputs[]
 o inversInputs
 Coordinate inversInputs[]
 o antiInputs
 Coordinate antiInputs[]
 o adderInputs
 Coordinate adderInputs[]
 o inver3Inputs
 Coordinate inver3Inputs[]
 o trans3Inputs
 Coordinate trans3Inputs[]
 o i
 private int i
Used internaly by setInputJoints method

 o activeLinkage
 int activeLinkage
The active linkage is the linkage which owns the joint the mouse pointer is over.

 o def
 static final String def

Constructors

 o Multiplier
 public Multiplier(Rectangle d)
Parameters:
d - the rectangle in which to draw the Squaring Linkage.

Methods

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

 o getParameters
 public double[] getParameters()
Not implemeted

Returns:
null
 o redraw
 public void redraw(Graphics g)
Draws a Squaring 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
if the new location of the active joint is not valid
See Also:
mouseDragged
 o getActiveStr
 public String getActiveStr(int activeJoint)
See Also:
getActiveStr
 o getActiveJoint
 public int getActiveJoint()
Returns:
-1
 o setActiveJoint
 public void setActiveJoint(int activeJoint)
Not implemented.

See Also:
setActiveJoint

All Packages  Class Hierarchy  This Package  Previous  Next  Index