com.iisc.jwc.jsheet
Class JSValueMatrix

java.lang.Object
  extended bycom.iisc.jwc.jsheet.JSValueMatrix
All Implemented Interfaces:
java.lang.Cloneable

public class JSValueMatrix
extends java.lang.Object
implements java.lang.Cloneable

JSValueMatrix is one of the data types returned by JSEvaluateValue.

See Also:
JSClient.evaluate(short, java.lang.String)

Constructor Summary
JSValueMatrix(com.iisc.jwc.orb.ValueMatrix valuematrix)
          Constructs a JSValueMatrix from a ValueMatrix.
 
Method Summary
 java.lang.Object clone()
          Creates a copy of the existing JSValueMatrix.
 short getdim1()
          Returns the first dimension.
 short getdim2()
          Returns the second dimension.
 short getdim3()
          Returns the third dimension
 JSValue getElement(short d1, short d2, short d3)
          Returns the specified element.
 JSValue getFirstDimensionElement(int element)
          Returns the specified first dimension element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSValueMatrix

public JSValueMatrix(com.iisc.jwc.orb.ValueMatrix valuematrix)
Constructs a JSValueMatrix from a ValueMatrix.

Parameters:
valuematrix - the ValueMatrix.
Method Detail

clone

public java.lang.Object clone()
Creates a copy of the existing JSValueMatrix.

Returns:
the new JSValueMatrix.

getdim1

public short getdim1()
Returns the first dimension.

Returns:
the first dimension.

getdim2

public short getdim2()
Returns the second dimension.

Returns:
the second dimension.

getdim3

public short getdim3()
Returns the third dimension

Returns:
the third dimension.

getElement

public JSValue getElement(short d1,
                          short d2,
                          short d3)
                   throws JSException
Returns the specified element.

Parameters:
d1 - The first dimension (0 based).
d2 - The second dimension (0 based).
d3 - The third dimension (0 based).
Returns:
the specified element.
Throws:
JSException - Invalid argument

getFirstDimensionElement

public JSValue getFirstDimensionElement(int element)
Returns the specified first dimension element.

Parameters:
element - The first dimension (0 based).
Returns:
the specified first dimension element.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.