Class AbstractInfluence

    • Constructor Detail

      • AbstractInfluence

        public AbstractInfluence​(String category,
                                 LevelIdentifier targetLevel,
                                 SimulationTimeStamp timeLowerBound,
                                 SimulationTimeStamp timeUpperBound)
        Builds an influence having a specific category and a specific target level.
        Parameters:
        category - The category of the influence, as described in the IInfluence.getCategory() method.
        targetLevel - The identifier of the level whose reaction will process this influence.
        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.
        Throws:
        IllegalArgumentException - If one of the arguments is null.
    • Method Detail

      • getCategory

        public String getCategory()
        Returns the category defined in the constructor of this class.
        Specified by:
        getCategory in interface IInfluence
        Returns:
        The category of the influence, as defined in the public static field declared in the concrete influence class.
        See Also:
        IInfluence.getCategory()
      • getTimeLowerBound

        public SimulationTimeStamp getTimeLowerBound()
        Gets the lower bound of the transitory period during which this influence was created.}
        Specified by:
        getTimeLowerBound in interface IInfluence
        Returns:
        The lower bound of the transitory period during which this influence was created.
      • getTimeUpperBound

        public SimulationTimeStamp getTimeUpperBound()
        Gets the upper bound of the transitory period during which this influence was created.}
        Specified by:
        getTimeUpperBound in interface IInfluence
        Returns:
        The upper bound of the transitory period during which this influence was created.
      • toString

        public String toString()
        Uses the category and the target level of the influence to build a printable version of this object.
        Overrides:
        toString in class Object
        Returns:
        The concatenation of the category and the target level of the influence.