org.ujmp.core.objectmatrix.calculation
Class Swap

java.lang.Object
  extended by org.ujmp.core.calculation.AbstractCalculation
      extended by org.ujmp.core.objectmatrix.calculation.AbstractObjectCalculation
          extended by org.ujmp.core.objectmatrix.calculation.Swap
All Implemented Interfaces:
Serializable, Calculation, ObjectCalculation

public class Swap
extends AbstractObjectCalculation

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
Swap(int dimension, long pos1, long pos2, Matrix m)
           
 
Method Summary
 Matrix calcOrig()
           
 Object getObject(long... coordinates)
           
 
Methods inherited from class org.ujmp.core.objectmatrix.calculation.AbstractObjectCalculation
calcLink, calcNew, getValueType, setObject
 
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSize, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 
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
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSize, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 

Constructor Detail

Swap

public Swap(int dimension,
            long pos1,
            long pos2,
            Matrix m)
Method Detail

getObject

public Object getObject(long... coordinates)
                 throws MatrixException
Throws:
MatrixException

calcOrig

public final Matrix calcOrig()
                      throws MatrixException
Specified by:
calcOrig in interface Calculation
Overrides:
calcOrig in class AbstractObjectCalculation
Throws:
MatrixException


Copyright © 2010. All Rights Reserved.