Class Attribute

    • Constructor Summary

      Constructors 
      Constructor Description
      Attribute​(double initialValue, java.lang.String name)  
      Attribute​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Gets this attribute's name.
      double getValue()
      This method simply returns the value.
      void setValue​(double value)
      Sets the value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attribute

        public Attribute​(java.lang.String name)
        Parameters:
        name -
      • Attribute

        public Attribute​(double initialValue,
                         java.lang.String name)
        Parameters:
        initialValue -
        name -
    • Method Detail

      • getName

        public final java.lang.String getName()
        Gets this attribute's name.
        Returns:
        The name of the attribute type.
      • getValue

        public double getValue()
        Description copied from interface: GetValueIfc
        This method simply returns the value.
        Specified by:
        getValue in interface GetValueIfc
        Returns:
        The value.
      • setValue

        public void setValue​(double value)
        Description copied from interface: SetValueIfc
        Sets the value
        Specified by:
        setValue in interface SetValueIfc
        Parameters:
        value - used in the setting.