All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Interface primitives.machines.FunctionalLinkage
  -  public interface FunctionalLinkage
  
-  extends MachineListener
  
This interface declares the methods defining a functional linkage.
 A functional linkage is a machine which can compute functions.
 given the locations of "input" joints the result is given by the location
 of the "output" joint.An object declared as a FunctionalLinkage can be a Machine
 or a composition of composed objects of FunctionalLinkage.
    -  See Also:
    
 -  Translator1, Inversor1, ScalarMultiplier1, Adder
 
  
  -  
	annulus
   -  
  
 -  
	bracket
   -  
  
 -  
	comma
   -  
  
 -  
	dot
   -  
 
  
  -  
	forceInputJoints(Coordinate[])
   -  Forces the input joints to be moved to the specified locations.
  
 -  
	getActiveJoint()
   -  
  
 -  
	getActiveStr(int)
   -  Returns a String to be displayed.
  
 -  
	getInputJoints()
   -  
  
 -  
	getOutputJoints()
   -  
  
 -  
	getParameters()
   -  
  
 -  
	mouseDragged(MouseEvent)
   -  A method which controls mouse darg user requests.
  
 -  
	mouseMoved(MouseEvent)
   -  A method which controls mouse move user requests.
  
 -  
	setActiveJoint(int)
   -  Sets the activeJoint.
  
 -  
	setInputJoints(Coordinate[])
   -  changes the state of the machine by moving the location of the input joints.
  
 -  
	setParameters(double[])
   -  Request the implementation to change its parameters.
 
  
comma
 public static final char comma
bracket
 public static final char bracket
annulus
 public static final char annulus[]
dot
 public static final char dot
  
forceInputJoints
 public abstract Coordinate[] forceInputJoints(Coordinate inputs[])
  -  Forces the input joints to be moved to the specified locations.
If the specifeid location is not valid then this object should implement
a resizing of the machine such that the specified locations should be valid.
  
    -  Parameters:
    
 -  inputs - an array of the  required input joints locations. The size
of the array is implementation specific.
  
 
 
 
getOutputJoints
 public abstract Coordinate[] getOutputJoints()
  
    -  Returns:
    
 -  an array of the locations of the output joints.
the size of the array is implementation specific.
  
 
 
getInputJoints
 public abstract Coordinate[] getInputJoints()
  
    -  Returns:
    
 -  an array of the locations of the input joints.
the size of the array is implementation specific.
  
 
 
setInputJoints
 public abstract Coordinate[] setInputJoints(Coordinate inputJoints[]) throws MachineException
  -  changes the state of the machine by moving the location of the input joints.
  
    -  Parameters:
    
 -  inputJoints - an array of the required locations. The size of the  array
is implementation specific.
    
 -  Returns:
    
 -  an array of the new locations of the output joints.
    
 -  Throws: MachineException
    
 -  if the required locations are not valid. If
the implementation must accept the locations use < a href="#forceInputJoints">forceInputJoints
  
 
 
 
getParameters
 public abstract double[] getParameters()
  
    -  Returns:
    
 -  an array of parameters specific to every implementation.
    
 -  See Also:
    
 -  setParameters
  
 
 
setParameters
 public abstract void setParameters(double parameters[]) throws MachineException
  -  Request the implementation to change its parameters.
  
    -  Parameters:
    
 -  parameters - an implementation specific array of parameters.
    
 -  Throws: MachineException
    
 -  if the required parametrs are not acceptable by
the implementation.
  
 
 
 
mouseMoved
 public abstract int mouseMoved(MouseEvent m)
  -  A method which controls mouse move user requests.
  
    -  Parameters:
    
 -  m - the mouseEvent object specifying location of the mouse pointer.
    
 -  Returns:
    
 -  the enumerated joint the the mouse pointer is over or 0 if the mouse
pointer is elsewhere.
  
 
 
 
mouseDragged
 public abstract void mouseDragged(MouseEvent m) throws MachineException
  -  A method which controls mouse darg user requests.
  
    -  Parameters:
    
 -  m - the mouseEvent object specifying location of the mouse pointer.
    
 -  Throws: MachineException
    
 -  if the new location requested is declared not valid by the
specific implementation.
  
 
 
 
getActiveStr
 public abstract String getActiveStr(int activeJoint)
  -  Returns a String to be displayed.
  
    -  Parameters:
    
 -  activeJoint - dispalys the enumerated string usualy associated with a joint.
  
 
 
 
getActiveJoint
 public abstract int getActiveJoint()
  
    -  Returns:
    
 -  the enumerated joint the mouse pointer is over(0 value indicates the mouse pointer
is located elsewhere)
    
 -  See Also:
    
 -  mouseMoved
  
 
 
setActiveJoint
 public abstract void setActiveJoint(int activeJoint)
  -  Sets the activeJoint.
  
    -  Parameters:
    
 -  activeJoint - the joint to set.
    
 -  See Also:
    
 -  mouseMoved
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index