Class EndCriterionDisjunction

    • Constructor Detail

      • EndCriterionDisjunction

        public EndCriterionDisjunction​(IEndCriterionModel... criterionModels)
        Builds a criterion as the disjunction of other criteria.
        Parameters:
        criterionModels - The criteria used in the disjunction.
    • Method Detail

      • isFinalTimeOrAfter

        public boolean isFinalTimeOrAfter​(SimulationTimeStamp currentTime,
                                          ISimulationEngine engine)
        Tells if a time stamp is greater or equal to the final time stamp.
        Specified by:
        isFinalTimeOrAfter in interface IEndCriterionModel
        Parameters:
        currentTime - The last time the dynamic state of the simulation was in a partly consistent state.
        engine - The simulation engine containing information about the currently running simulation.
        Returns:
        true if the final time of the level was reached.