org.ujmp.core.calculation
Class AbstractCalculation

java.lang.Object
  extended by org.ujmp.core.calculation.AbstractCalculation
All Implemented Interfaces:
Serializable, Calculation
Direct Known Subclasses:
AbstractBigDecimalCalculation, AbstractBigIntegerCalculation, AbstractBooleanCalculation, AbstractByteCalculation, AbstractCharCalculation, AbstractDateCalculation, AbstractDoubleCalculation, AbstractFloatCalculation, AbstractIntCalculation, AbstractLongCalculation, AbstractObjectCalculation, AbstractShortCalculation, AbstractStringCalculation

public abstract class AbstractCalculation
extends Object
implements Calculation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
 
Field Summary
 
Fields inherited from interface org.ujmp.core.calculation.Calculation
ALL, COLUMN, LINK, NEW, NONE, ORIG, ROW
 
Constructor Summary
AbstractCalculation(int dimension, Matrix... sources)
           
AbstractCalculation(Matrix... sources)
           
 
Method Summary
 Iterable<long[]> allCoordinates()
           
 Iterable<long[]> availableCoordinates()
           
 Matrix calc(Calculation.Ret returnType)
           
 Matrix[] calcMulti()
           
 boolean contains(long... coordinates)
           
 Annotation getAnnotation()
           
 int getDimension()
           
 long[] getSize()
           
 Matrix getSource()
           
 Matrix[] getSources()
           
 Matrix.StorageType getStorageType()
           
 long getValueCount()
           
 boolean isSparse()
           
 void setAnnotation(Annotation annotation)
           
 void setDimension(int dimension)
           
 void setSources(Matrix... sources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.calculation.Calculation
calcLink, calcNew, calcOrig, getValueType
 

Constructor Detail

AbstractCalculation

public AbstractCalculation(Matrix... sources)

AbstractCalculation

public AbstractCalculation(int dimension,
                           Matrix... sources)
Method Detail

isSparse

public boolean isSparse()
Specified by:
isSparse in interface Calculation

setAnnotation

public void setAnnotation(Annotation annotation)
Specified by:
setAnnotation in interface Calculation

getValueCount

public long getValueCount()
Specified by:
getValueCount in interface Calculation

availableCoordinates

public Iterable<long[]> availableCoordinates()
Specified by:
availableCoordinates in interface Calculation

allCoordinates

public Iterable<long[]> allCoordinates()
Specified by:
allCoordinates in interface Calculation

contains

public boolean contains(long... coordinates)
Specified by:
contains in interface Calculation

getAnnotation

public Annotation getAnnotation()
Specified by:
getAnnotation in interface Calculation

getSource

public final Matrix getSource()
Specified by:
getSource in interface Calculation

getSources

public final Matrix[] getSources()
Specified by:
getSources in interface Calculation

setSources

public void setSources(Matrix... sources)
Specified by:
setSources in interface Calculation

getDimension

public int getDimension()
Specified by:
getDimension in interface Calculation

setDimension

public void setDimension(int dimension)
Specified by:
setDimension in interface Calculation

getSize

public long[] getSize()
Specified by:
getSize in interface Calculation

calc

public final Matrix calc(Calculation.Ret returnType)
                  throws MatrixException
Specified by:
calc in interface Calculation
Throws:
MatrixException

calcMulti

public Matrix[] calcMulti()
                   throws MatrixException
Specified by:
calcMulti in interface Calculation
Throws:
MatrixException

getStorageType

public final Matrix.StorageType getStorageType()
Specified by:
getStorageType in interface Calculation


Copyright © 2010. All Rights Reserved.