Interface EncodedValue

All Known Subinterfaces:
BooleanEncodedValue, DecimalEncodedValue, IntEncodedValue
All Known Implementing Classes:
DecimalEncodedValueImpl, EnumEncodedValue, ExternalBooleanEncodedValue, IntEncodedValueImpl, SimpleBooleanEncodedValue, StringEncodedValue

public interface EncodedValue
This interface defines how to store and read values from a list of integers
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns the hierarchical name like vehicle.type of this EncodedValue
    int
    This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling next
    boolean
     
  • Method Details

    • init

      This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling next
      Returns:
      used bits
      See Also:
      • EncodedValue.InitializerConfig.next(int)
    • getName

      String getName()
      This method returns the hierarchical name like vehicle.type of this EncodedValue
    • isStoreTwoDirections

      boolean isStoreTwoDirections()
      Returns:
      true if this EncodedValue can store a different value for its reverse direction