Class AbstractPerceivedData
- java.lang.Object
-
- fr.univ_artois.lgi2a.similar.microkernel.libs.abstractimpl.AbstractPerceivedData
-
- All Implemented Interfaces:
IPerceivedData
- Direct Known Subclasses:
EmptyPerceivedData
public abstract class AbstractPerceivedData extends Object implements IPerceivedData
An abstract implementation of theIPerceivedData
interface, providing a default behavior to the methods of the interface.- Author:
- Yoann Kubera
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPerceivedData(LevelIdentifier levelIdentifier, SimulationTimeStamp transitoryPeriodMin, SimulationTimeStamp transitoryPeriodMax)
Builds empty data perceived by an agent from a specific level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelIdentifier
getLevel()
Gets the identifier of the level from which these data were perceived.SimulationTimeStamp
getTransitoryPeriodMax()
Gets the upper bound of the transitory period for which these data were perceived.SimulationTimeStamp
getTransitoryPeriodMin()
Gets the lower bound of the transitory period for which these data were perceived.
-
-
-
Constructor Detail
-
AbstractPerceivedData
protected AbstractPerceivedData(LevelIdentifier levelIdentifier, SimulationTimeStamp transitoryPeriodMin, SimulationTimeStamp transitoryPeriodMax)
Builds empty data perceived by an agent from a specific level.- Parameters:
levelIdentifier
- The identifier of the level by which the data were perceived.transitoryPeriodMin
- The lower bound of the transitory period for which these data were perceived.transitoryPeriodMax
- The upper bound of the transitory period for which these data were perceived.- Throws:
IllegalArgumentException
- If an argument isnull
.
-
-
Method Detail
-
getLevel
public LevelIdentifier getLevel()
Gets the identifier of the level from which these data were perceived.This method returns the value "l" within the expression pa(]t,t′[, l);
- Specified by:
getLevel
in interfaceIPerceivedData
- Returns:
- The identifier of the level for which these data were perceived.
-
getTransitoryPeriodMin
public SimulationTimeStamp getTransitoryPeriodMin()
Gets the lower bound of the transitory period for which these data were perceived.This method returns the value "t" within the expression pa(]t,t′[, l);
- Specified by:
getTransitoryPeriodMin
in interfaceIPerceivedData
- Returns:
- The lower bound of the transitory period for which these data were perceived.
-
getTransitoryPeriodMax
public SimulationTimeStamp getTransitoryPeriodMax()
Gets the upper bound of the transitory period for which these data were perceived.This method returns the value "t′" within the expression pa(]t,t′[, l);
- Specified by:
getTransitoryPeriodMax
in interfaceIPerceivedData
- Returns:
- The upper bound of the transitory period for which these data were perceived.
-
-