ru.tunegov.mathematic
Class DegreeOperator

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

public class DegreeOperator
extends UnaryOperation

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

Since:
Mathematic 1.0
See Also:
Serialized Form

Field Summary
static int POW
          The type of the operator.
static int ROOT
          The type of the operator.
 
Constructor Summary
DegreeOperator()
          Contruct a Pow object.
 
Method Summary
 double getDegree()
          Returns degree of the operation.
 int getOperation()
          Returns the type of the operation.
 void setDegree(double value)
          Sets degree 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.UnaryOperation
getInputArg, setInputArg
 
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

POW

public static final int POW
The type of the operator. Pow.

ROOT

public static final int ROOT
The type of the operator. Root.
Constructor Detail

DegreeOperator

public DegreeOperator()
Contruct a Pow object.
Method Detail

getDegree

public double getDegree()
Returns degree of the operation.
Returns:
Degree of the operation

getOperation

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

setDegree

public void setDegree(double value)
Sets degree of the operation.
Parameters:
value - The new value of the degree

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