ru.tunegov.mathematic
Class ScalarFunction

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

public class ScalarFunction
extends UnaryOperation

This is a non-visual component that represents scalar function over scalars during visual wiring beans in the IDE.

Since:
Mathematic 1.0
See Also:
Serialized Form

Field Summary
static int COS
          The type of the operator.
static int EXP
          The type of the operator.
static int LOG
          The type of the operator.
static int SIN
          The type of the operator.
static int TAN
          The type of the operator.
 
Constructor Summary
ScalarFunction()
          Contruct a Cos object.
 
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.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

SIN

public static final int SIN
The type of the operator. Sine.

COS

public static final int COS
The type of the operator. Cosine.

TAN

public static final int TAN
The type of the operator. Tangent

LOG

public static final int LOG
The type of the operator. Logarithm

EXP

public static final int EXP
The type of the operator. Exponential
Constructor Detail

ScalarFunction

public ScalarFunction()
Contruct a Cos object.
Method Detail

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