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
 
  
  -  
	activeLinkage
   -  The active linkage is the linkage which owns the joint the mouse pointer is over.
  
 -  
	adder
   -  
  
 -  
	adderInputs
   -  
  
 -  
	anti
   -  Preforms multiplication by -1
  
 -  
	antiInputs
   -  
  
 -  
	def
   -  
  
 -  
	i
   -  Used internaly by setInputJoints method
  
 -  
	inputs
   -  
  
 -  
	inver3Inputs
   -  
  
 -  
	inversInputs
   -  
  
 -  
	inversors
   -  Array of the 3 Inversor1 objects used by this object
  
 -  
	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];
   -  
	trans3Inputs
   -  
  
 -  
	transInputs
   -  
  
 -  
	translators
   -  array of the 3 Translator1 objects used by this object.
 
  
  -  
	Multiplier(Rectangle)
   -  
 
  
  -  
	forceInputJoints(Coordinate[])
   -  
  
 -  
	getActiveJoint()
   -  
  
 -  
	getActiveStr(int)
   -  
  
 -  
	getInputJoints()
   -  
  
 -  
	getOutputJoints()
   -  
  
 -  
	getParameters()
   -  Not implemeted
  
 -  
	mouseDragged(MouseEvent)
   -  
  
 -  
	mouseMoved(MouseEvent)
   -  
  
 -  
	redraw(Graphics)
   -  Draws a Squaring Linkage.
  
 -  
	setActiveJoint(int)
   -  Not implemented.
  
 -  
	setInputJoints(Coordinate[])
   -  
  
 -  
	setParameters(double[])
   -  Not implemented.
 
  
translators
 Translator1 translators[]
  -  array of the 3 Translator1 objects used by this object.
 
inversors
 Inversor1 inversors[]
  -  Array of the 3 Inversor1 objects used by this object
 
anti
 ScalarMultiplier1 anti
  -  Preforms multiplication by -1
 
adder
 Adder adder
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];
 
inputs
 Coordinate inputs[]
transInputs
 Coordinate transInputs[]
inversInputs
 Coordinate inversInputs[]
antiInputs
 Coordinate antiInputs[]
adderInputs
 Coordinate adderInputs[]
inver3Inputs
 Coordinate inver3Inputs[]
trans3Inputs
 Coordinate trans3Inputs[]
i
 private int i
  -  Used internaly by setInputJoints method
 
activeLinkage
 int activeLinkage
  -  The active linkage is the linkage which owns the joint the mouse pointer is over.
 
def
 static final String def
  
Multiplier
 public Multiplier(Rectangle d)
  
    -  Parameters:
    
 -  d - the rectangle in which to draw the Squaring Linkage.
  
 
 
  
forceInputJoints
 public Coordinate[] forceInputJoints(Coordinate input[])
  
    -  See Also:
    
 -  forceInputJoints
  
 
 
setInputJoints
 public Coordinate[] setInputJoints(Coordinate input[]) throws MachineException
getInputJoints
 public Coordinate[] getInputJoints()
  
    -  See Also:
    
 -  getInputJoints
  
 
 
getOutputJoints
 public Coordinate[] getOutputJoints()
  
    -  See Also:
    
 -  getOutputJoints
  
 
 
setParameters
 public void setParameters(double parameters[])
  -  Not implemented.
 
getParameters
 public double[] getParameters()
  -  Not implemeted
  
    -  Returns:
    
 -  null
  
 
 
 
redraw
 public void redraw(Graphics g)
  -  Draws a Squaring Linkage.
  
    -  Parameters:
    
 -  g - the graphic context to draw to.
    
 -  See Also:
    
 -  MachineListener
  
 
 
 
mouseMoved
 public int mouseMoved(MouseEvent m)
  
    -  See Also:
    
 -  mouseMoved
  
 
 
mouseDragged
 public void mouseDragged(MouseEvent m) throws MachineException
  
    -  Throws: MachineException
    
 -  if the new location of the active joint is not valid
    
 -  See Also:
    
 -  mouseDragged
  
 
 
getActiveStr
 public String getActiveStr(int activeJoint)
  
    -  See Also:
    
 -  getActiveStr
  
 
 
getActiveJoint
 public int getActiveJoint()
  
    -  Returns:
    
 -  -1
  
 
 
setActiveJoint
 public void setActiveJoint(int activeJoint)
  -  Not implemented.
  
    -  See Also:
    
 -  setActiveJoint
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index