Class ChangeDirection

  • All Implemented Interfaces:
    fr.univ_artois.lgi2a.similar.microkernel.influences.IInfluence

    public class ChangeDirection
    extends fr.univ_artois.lgi2a.similar.microkernel.influences.RegularInfluence
    Models an influence that aims at changing the direction of a turtle.
    Author:
    Yoann Kubera, Gildas Morvan
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CATEGORY
      The category of the influence, used as a unique identifier in the reaction of the target level to determine the nature of the influence.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChangeDirection​(fr.univ_artois.lgi2a.similar.microkernel.LevelIdentifier levelIdentifier, fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound, fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound, double dd, TurtlePLSInLogo target)
      Builds an instance of this influence created during the transitory period ] timeLowerBound, timeUpperBound [, in a given level.
      ChangeDirection​(fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound, fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound, double dd, TurtlePLSInLogo target)
      Builds an instance of this influence created during the transitory period ] timeLowerBound, timeUpperBound [, in the LOGO level.
    • Field Detail

      • CATEGORY

        public static final String CATEGORY
        The category of the influence, used as a unique identifier in the reaction of the target level to determine the nature of the influence.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangeDirection

        public ChangeDirection​(fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound,
                               fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound,
                               double dd,
                               TurtlePLSInLogo target)
        Builds an instance of this influence created during the transitory period ] timeLowerBound, timeUpperBound [, in the LOGO level.
        Parameters:
        timeLowerBound - The lower bound of the transitory period during which this influence was created.
        timeUpperBound - The upper bound of the transitory period during which this influence was created.
        dd - The direction change.
        target - The turtle's public local state that is going to change.
      • ChangeDirection

        public ChangeDirection​(fr.univ_artois.lgi2a.similar.microkernel.LevelIdentifier levelIdentifier,
                               fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound,
                               fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound,
                               double dd,
                               TurtlePLSInLogo target)
        Builds an instance of this influence created during the transitory period ] timeLowerBound, timeUpperBound [, in a given level.
        Parameters:
        levelIdentifier - the level in which the influence is emitted.
        timeLowerBound - The lower bound of the transitory period during which this influence was created.
        timeUpperBound - The upper bound of the transitory period during which this influence was created.
        dd - The direction change.
        target - The turtle's public local state that is going to change.
    • Method Detail

      • getDd

        public double getDd()
        Returns:
        the direction change.
      • getTarget

        public TurtlePLSInLogo getTarget()
        Returns:
        the turtle's public local state that is going to change.