org.iges.grads.server
Class GradsDataInfo.CTL

java.lang.Object
  |
  +--org.iges.grads.server.GradsDataInfo.CTL
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GradsDataInfo

public class GradsDataInfo.CTL
extends java.lang.Object
implements java.io.Serializable

Holds the information needed for the direct subset mechanism.

See Also:
Serialized Form

Method Summary
 long getLevelsUpTo(int varIndex)
          Returns the sum of the vertical levels for variables prior to the specified index
 int getVarIndex(java.lang.String varName)
          Returns the index of a given variable in the dataset
 long getVarLevelCount(int varIndex)
          Returns the number of levels for a given variable in the dataset.
 boolean isVarVertical(int varIndex)
          Returns true if the specified variable has vertical levels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVarIndex

public int getVarIndex(java.lang.String varName)
Returns the index of a given variable in the dataset


getVarLevelCount

public long getVarLevelCount(int varIndex)
Returns the number of levels for a given variable in the dataset. Returns 1 for level-independent variables since the purpose is to calculate storage used in the actual disk file.


isVarVertical

public boolean isVarVertical(int varIndex)
Returns true if the specified variable has vertical levels


getLevelsUpTo

public long getLevelsUpTo(int varIndex)
Returns the sum of the vertical levels for variables prior to the specified index