Class ChangeAcceleration
- java.lang.Object
-
- fr.univ_artois.lgi2a.similar.microkernel.influences.AbstractInfluence
-
- fr.univ_artois.lgi2a.similar.microkernel.influences.RegularInfluence
-
- fr.univ_artois.lgi2a.similar2logo.kernel.model.influences.ChangeAcceleration
-
- All Implemented Interfaces:
fr.univ_artois.lgi2a.similar.microkernel.influences.IInfluence
public class ChangeAcceleration extends fr.univ_artois.lgi2a.similar.microkernel.influences.RegularInfluence
Models an influence that aims at changing the acceleration of a turtle.- Author:
- Yoann Kubera, Gildas Morvan
-
-
Constructor Summary
Constructors Constructor Description ChangeAcceleration(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 da, TurtlePLSInLogo target)
Builds an instance of this influence created during the transitory period] timeLowerBound, timeUpperBound [
, in a given level.ChangeAcceleration(fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound, fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound, double da, TurtlePLSInLogo target)
Builds an instance of this influence created during the transitory period] timeLowerBound, timeUpperBound [
, in the LOGO level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDa()
TurtlePLSInLogo
getTarget()
-
Methods inherited from class fr.univ_artois.lgi2a.similar.microkernel.influences.RegularInfluence
isSystem
-
-
-
-
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
-
ChangeAcceleration
public ChangeAcceleration(fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeLowerBound, fr.univ_artois.lgi2a.similar.microkernel.SimulationTimeStamp timeUpperBound, double da, 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.da
- The acceleration change.target
- The turtle's public local state that is going to change.
-
ChangeAcceleration
public ChangeAcceleration(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 da, 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.
-
-
Method Detail
-
getDa
public double getDa()
- Returns:
- the acceleration change.
-
getTarget
public TurtlePLSInLogo getTarget()
- Returns:
- the turtle's public local state that is going to change.
-
-