예제 #1
0
 /**
  * Copy Constructor. used to make global dimensions
  *
  * @param name name must be unique within group. Can be null only if not shared.
  * @param from copy all other fields from here.
  */
 public Dimension(String name, Dimension from) {
   setName(name);
   this.length = from.length;
   this.isUnlimited = from.isUnlimited;
   this.isVariableLength = from.isVariableLength;
   this.isShared = from.isShared;
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param name name must be unique within group. Can be null only if not shared.
  * @param length length, or UNLIMITED.length or UNKNOWN.length
  * @param isShared whether its shared or local to Variable.
  * @param isUnlimited whether the length can grow.
  * @param isVariableLength whether the length is unknown until the data is read.
  */
 public Dimension(
     String name, int length, boolean isShared, boolean isUnlimited, boolean isVariableLength) {
   setName(name);
   this.isShared = isShared;
   this.isUnlimited = isUnlimited;
   this.isVariableLength = isVariableLength;
   setLength(length);
   assert (this.name != null) || !this.isShared;
 }