ru.tunegov.mathematic
Class BinaryArithmeticOperator

java.lang.Object
  |
  +--ru.tunegov.mathematic.FunctionBean
        |
        +--ru.tunegov.mathematic.Operation
              |
              +--ru.tunegov.mathematic.BinaryArithmeticOperator
All Implemented Interfaces:
java.io.Serializable

public class BinaryArithmeticOperator
extends Operation

This is a non-visual component that represents binary mathematical operation over scalars and matrix during visual wiring beans in the IDE.

Since:
Mathematic 1.0
See Also:
Serialized Form

Field Summary
static int ADD
          The type of the operator.
static int DIVIDE
          The type of the operator.
static int MULTIPLY
          The type of the operator.
static int SUBTRACT
          The type of the operator.
 
Constructor Summary
BinaryArithmeticOperator()
           
 
Method Summary
 ElementSet getInputFirstArg()
          Returns the first argument of the operation.
 ElementSet getInputSecondArg()
          Returns the second argument of the operation.
 int getOperation()
          Returns the type of the operation.
 void setInputFirstArg(ElementSet value)
          Sets the first argument of the operation.
 void setInputSecondArg(ElementSet value)
          Sets the second argument of the operation.
 void setOperation(int value)
          Sets the type of the operation.
 java.lang.String toDebugString()
          Returns a String that represents the value of this object.
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class ru.tunegov.mathematic.Operation
getDebug, getResult, setDebug
 
Methods inherited from class ru.tunegov.mathematic.FunctionBean
addActionErrorListener, addFetchArgumentsListener, addPropertyChangeListener, addTriggerNextActionListener, getAutoAction, removeActionErrorListener, removeFetchArgumentsListener, removePropertyChangeListener, removeTriggerNextActionListener, setAutoAction, triggerAction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
The type of the operator. Addition

SUBTRACT

public static final int SUBTRACT
The type of the operator. Subtraction

MULTIPLY

public static final int MULTIPLY
The type of the operator. Multiplication

DIVIDE

public static final int DIVIDE
The type of the operator. Division
Constructor Detail

BinaryArithmeticOperator

public BinaryArithmeticOperator()
Method Detail

getInputFirstArg

public ElementSet getInputFirstArg()
Returns the first argument of the operation.
Returns:
The first argument of the operation

getInputSecondArg

public ElementSet getInputSecondArg()
Returns the second argument of the operation.
Returns:
The second argument of the operation

getOperation

public int getOperation()
Returns the type of the operation.
Returns:
the type of the operation

setInputFirstArg

public void setInputFirstArg(ElementSet value)
Sets the first argument of the operation.
Parameters:
value - The new value of the first argument

setInputSecondArg

public void setInputSecondArg(ElementSet value)
Sets the second argument of the operation.
Parameters:
value - The new value of the second argument

setOperation

public void setOperation(int value)
Sets the type of the operation.
Parameters:
value - The new value

toDebugString

public java.lang.String toDebugString()
Returns a String that represents the value of this object.
Overrides:
toDebugString in class Operation
Returns:
a string representation of the receiver

toString

public java.lang.String toString()
Returns a String that represents the value of this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the receiver