|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.MathValue | +--com.klg.jclass.util.formulae.MathScalar
MathScalar is a scalar constant represented as a MathValue. By encapsulating it in this fashion we can potentially extend this class in future to support complex numbers as well as integer and real numbers.
Field Summary | |
protected Number |
realValue
A real number stored in the appropriate format |
Fields inherited from class com.klg.jclass.util.formulae.MathValue |
dataFormat |
Constructor Summary | |
MathScalar()
Create a MathScalar (default value 0.0) |
|
MathScalar(double value)
Create a MathScalar from a double |
|
MathScalar(int value)
Create a MathScalar from an integer |
|
MathScalar(Number value)
Create a MathScalar from a Number |
Method Summary | |
Number[][] |
matrixValue()
Get the contents of this MathValue as a matrix of Numbers |
Number |
numberValue()
Get the contents of this MathValue as a Number |
String |
toString()
Return a string representation of this value |
Number[] |
vectorValue()
Get the contents of this MathValue as a vector of Numbers |
Methods inherited from class com.klg.jclass.util.formulae.MathValue |
clone, evaluate, getDataFormat, setDataFormat |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Number realValue
Constructor Detail |
public MathScalar()
public MathScalar(double value)
public MathScalar(int value)
public MathScalar(Number value)
Method Detail |
public Number numberValue()
numberValue
in class MathValue
public Number[] vectorValue()
vectorValue
in class MathValue
public Number[][] matrixValue()
matrixValue
in class MathValue
public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |