uk.ac.bristol.star.cdf
Class VariableAttribute

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

public class VariableAttribute
extends java.lang.Object

Provides the description and per-variable entry values for a CDF attribute with variable scope.

Since:
20 Jun 2013

Constructor Summary
VariableAttribute(java.lang.String name, AttributeEntry[] rEntries, AttributeEntry[] zEntries)
          Constructor.
 
Method Summary
 AttributeEntry getEntry(Variable variable)
          Returns the entry value that a given variable has for this attribute.
 java.lang.String getName()
          Returns this attribute's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableAttribute

public VariableAttribute(java.lang.String name,
                         AttributeEntry[] rEntries,
                         AttributeEntry[] zEntries)
Constructor.

Parameters:
name - attribute name
rEntries - rEntry values for this attribute
zEntries - zEntry values for this attribute
Method Detail

getName

public java.lang.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