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: 
  
  -  
	activeJoint
   -  The enumerated joint the mouse pointer is over
  
 -  
	b
   -  The real vector of translation
  
 -  
	def
   -  
  
 -  
	i
   -  used internaly by setInputJoints method
  
 -  
	inputs
   -  
  
 -  
	lamda
   -  The scalar multiplier
  
 -  
	linkages
   -  An enumeration of the 3 linkages composing this linkage:
linkages[0]=translators[0]
linkages[1]=scMult;
linkages[2]=translators[1]
  
 -  
	origin
   -  The location on the canvas of the relative origin
  
 -  
	scMult
   -  
  
 -  
	tInputs
   -  
  
 -  
	translators
   -  An array containing the 2 Translator1 objects used by this linkage.
 
  
  -  
	ScMultForZero(Rectangle, double)
   -  
 
  
  -  
	forceInputJoints(Coordinate[])
   -  
  
 -  
	getActiveJoint()
   -  
  
 -  
	getActiveStr(int)
   -  
  
 -  
	getInputJoints()
   -  
  
 -  
	getOutputJoints()
   -  
  
 -  
	getParameters()
   -  
  
 -  
	mouseDragged(MouseEvent)
   -  
  
 -  
	mouseMoved(MouseEvent)
   -  
  
 -  
	redraw(Graphics)
   -  Draws a Scalar Multiplier around Zero linkage
  
 -  
	setActiveJoint(int)
   -  
  
 -  
	setInputJoints(Coordinate[])
   -  
  
 -  
	setParameters(double[])
   -  Not implemented
 
  
translators
 Translator1 translators[]
  -  An array containing the 2 Translator1 objects used by this linkage.
 
scMult
 ScalarMultiplier1 scMult
linkages
 final FunctionalLinkage linkages[]
  -  An enumeration of the 3 linkages composing this linkage:
linkages[0]=translators[0]
linkages[1]=scMult;
linkages[2]=translators[1]
 
origin
 Point origin
  -  The location on the canvas of the relative origin
 
b
 int b
  -  The real vector of translation
 
lamda
 double lamda
  -  The scalar multiplier
 
inputs
 Coordinate inputs[]
i
 private int i
  -  used internaly by setInputJoints method
 
tInputs
 Coordinate tInputs[]
activeJoint
 it activeJoint
  -  The enumerated joint the mouse pointer is over
 
def
 static final String def
  
ScMultForZero
 public ScMultForZero(Rectangle d,
                      double scalar)
  
    -  Parameters:
    
 -  d - the rectangle to draw this object in
    
-  scalar - the scalar multiplier to be used
  
  
 
  
forceInputJoints
 public Coordinate[] forceInputJoints(Coordinate inputs[])
  
    -  See Also:
    
 -  forceInputJoints
  
 
 
setInputJoints
 public Coordinate[] setInputJoints(Coordinate inputs[]) throws MachineException
  
    -  Throws: MachineException
    
 -  .
    
 -  See Also:
    
 -  setInputJoints
  
 
 
getInputJoints
 public Coordinate[] getInputJoints()
  
    -  See Also:
    
 -  getInputJoints
  
 
 
getOutputJoints
 public Coordinate[] getOutputJoints()
  
    -  See Also:
    
 -  getOutputJoints
  
 
 
setParameters
 public void setParameters(double paramaters[])
  -  Not implemented
 
getParameters
 public double[] getParameters()
  
    -  Returns:
    
 -  null
  
 
 
redraw
 public void redraw(Graphics g)
  -  Draws a Scalar Multiplier around Zero 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
    
 -  .
    
 -  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