Class VariableAttribute

java.lang.Object
uk.ac.bristol.star.cdf.VariableAttribute

public class VariableAttribute extends Object
Provides the description and per-variable entry values for a CDF attribute with variable scope.
Since:
20 Jun 2013
  • Constructor Details

    • VariableAttribute

      public VariableAttribute(String name, AttributeEntry[] rEntries, AttributeEntry[] zEntries)
      Constructor.
      Parameters:
      name - attribute name
      rEntries - rEntry values for this attribute
      zEntries - zEntry values for this attribute
  • Method Details

    • getName

      public String getName()
      Returns this attribute's name.
      Returns:
      attribute name
    • getEntry

      public AttributeEntry getEntry(Variable variable)
      Returns the entry value that a given variable has for this attribute. If the variable has no entry for this attribute, null is returned.
      Parameters:
      variable - CDF variable from the same CDF as this attribute
      Returns:
      this attribute's value for variable