Class GeneratorPositions.RoadPosition.ByValue

    • Constructor Detail

      • ByValue

        public ByValue​(double value)
        Constructor.
        Parameters:
        value - double; road position
    • Method Detail

      • getValue

        public double getValue​(Speed desiredSpeed)
        Returns the road position (0.0 = right, 1.0 = left).
        Specified by:
        getValue in interface GeneratorPositions.RoadPosition
        Parameters:
        desiredSpeed - Speed; desired speed at the generator
        Returns:
        road position (0.0 = right, 1.0 = left)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object