coreEngine.Helper.RampMeteringData

## Class RampMeteringFuzzyData

- java.lang.Object
- - coreEngine.Helper.RampMeteringData.RampMeteringFuzzyData

- All Implemented Interfaces:
    RampMeteringData, java.io.Serializable

      public class RampMeteringFuzzyData
      extends java.lang.Object
      implements RampMeteringData, java.io.Serializable

  Adaptive Ramp Metering Data for Fuzzy Logic
  Author:
    Shu Liu
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `java.util.TreeMap<java.lang.String,java.lang.Double>` | `data` Data map
    `private static long` | `serialVersionUID` serialVersionUID

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RampMeteringFuzzyData()` Constructor, initialize default values

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getItemCount()` Get number of items
    `java.lang.String` | `getItemName(int index)` Get item name at a given index
    `double` | `getItemValue(int index)` Get item value at a given index
    `void` | `setItemValue(int index, double value)` Get item value at a given index

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### serialVersionUID

          private static final long serialVersionUID

      serialVersionUID
      See Also:
        Constant Field Values

    - #### data

          public final java.util.TreeMap<java.lang.String,java.lang.Double> data

      Data map

  - ### Constructor Detail

    - #### RampMeteringFuzzyData

          public RampMeteringFuzzyData()

      Constructor, initialize default values

  - ### Method Detail

    - #### getItemCount

          public int getItemCount()

      Get number of items
      Specified by:
        `getItemCount` in interface `RampMeteringData`
      Returns:
        number of items

    - #### getItemName

          public java.lang.String getItemName(int index)

      Get item name at a given index
      Specified by:
        `getItemName` in interface `RampMeteringData`
      Parameters:
        `index` - index of item
      Returns:
        item name at a given index

    - #### getItemValue

          public double getItemValue(int index)

      Get item value at a given index
      Specified by:
        `getItemValue` in interface `RampMeteringData`
      Parameters:
        `index` - index of item
      Returns:
        item value at a given index

    - #### setItemValue

          public void setItemValue(int index,
                                   double value)

      Get item value at a given index
      Specified by:
        `setItemValue` in interface `RampMeteringData`
      Parameters:
        `index` - index of item
        `value` - new item value