ru.tunegov.mathematic
Class UnaryArithmeticOperator
java.lang.Object
|
+--ru.tunegov.mathematic.FunctionBean
|
+--ru.tunegov.mathematic.Operation
|
+--ru.tunegov.mathematic.UnaryOperation
|
+--ru.tunegov.mathematic.UnaryArithmeticOperator
- All Implemented Interfaces:
- java.io.Serializable
- public class UnaryArithmeticOperator
- extends UnaryOperation
This is a non-visual component that represents unary mathematical
operation over scalars and matrices during visual wiring beans
in the IDE.
- Since:
- Mathematic 1.0
- See Also:
- Serialized Form
|
Field Summary |
static int |
ABS
The type of the operator. |
static int |
FACTORIAL
The type of the operator. |
static int |
INVERSE
The type of the operator. |
static int |
NEGATE
The type of the operator. |
|
Method Summary |
int |
getOperation()
Returns the type 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.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 |
ABS
public static final int ABS
- The type of the operator. Absolute value of the element.
NEGATE
public static final int NEGATE
- The type of the operator. Negate of the element.
FACTORIAL
public static final int FACTORIAL
- The type of the operator. Factorial of the decimal number.
INVERSE
public static final int INVERSE
- The type of the operator. Inverse of the element.
UnaryArithmeticOperator
public UnaryArithmeticOperator()
- Contruct a Abs object.
getOperation
public int getOperation()
- Returns the type of the operation.
- Returns:
- the type of the operation
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