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

Variable Index

 o annulus
 o bracket
 o comma
 o dot

Method Index

 o forceInputJoints(Coordinate[])
Forces the input joints to be moved to the specified locations.
 o getActiveJoint()
 o getActiveStr(int)
Returns a String to be displayed.
 o getInputJoints()
 o getOutputJoints()
 o getParameters()
 o mouseDragged(MouseEvent)
A method which controls mouse darg user requests.
 o mouseMoved(MouseEvent)
A method which controls mouse move user requests.
 o setActiveJoint(int)
Sets the activeJoint.
 o setInputJoints(Coordinate[])
changes the state of the machine by moving the location of the input joints.
 o setParameters(double[])
Request the implementation to change its parameters.

Variables

 o comma
 public static final char comma
 o bracket
 public static final char bracket
 o annulus
 public static final char annulus[]
 o dot
 public static final char dot

Methods

 o 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.
 o getOutputJoints
 public abstract Coordinate[] getOutputJoints()
Returns:
an array of the locations of the output joints. the size of the array is implementation specific.
 o getInputJoints
 public abstract Coordinate[] getInputJoints()
Returns:
an array of the locations of the input joints. the size of the array is implementation specific.
 o 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
 o getParameters
 public abstract double[] getParameters()
Returns:
an array of parameters specific to every implementation.
See Also:
setParameters
 o 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.
 o 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.
 o 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.
 o getActiveStr
 public abstract String getActiveStr(int activeJoint)
Returns a String to be displayed.

Parameters:
activeJoint - dispalys the enumerated string usualy associated with a joint.
 o 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
 o 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