Class AbnormalTimePeriod


  • public final class AbnormalTimePeriod
    extends Object
    Class representing Abnormal Time Period identified in diagnosis.
    • Constructor Detail

      • AbnormalTimePeriod

        public AbnormalTimePeriod()
    • Method Detail

      • startTime

        public OffsetDateTime startTime()
        Get the startTime property: Start time of the downtime.
        Returns:
        the startTime value.
      • withStartTime

        public AbnormalTimePeriod withStartTime​(OffsetDateTime startTime)
        Set the startTime property: Start time of the downtime.
        Parameters:
        startTime - the startTime value to set.
        Returns:
        the AbnormalTimePeriod object itself.
      • endTime

        public OffsetDateTime endTime()
        Get the endTime property: End time of the downtime.
        Returns:
        the endTime value.
      • withEndTime

        public AbnormalTimePeriod withEndTime​(OffsetDateTime endTime)
        Set the endTime property: End time of the downtime.
        Parameters:
        endTime - the endTime value to set.
        Returns:
        the AbnormalTimePeriod object itself.
      • withEvents

        public AbnormalTimePeriod withEvents​(List<DetectorAbnormalTimePeriod> events)
        Set the events property: List of Possible Cause of downtime.
        Parameters:
        events - the events value to set.
        Returns:
        the AbnormalTimePeriod object itself.
      • solutions

        public List<Solution> solutions()
        Get the solutions property: List of proposed solutions.
        Returns:
        the solutions value.
      • withSolutions

        public AbnormalTimePeriod withSolutions​(List<Solution> solutions)
        Set the solutions property: List of proposed solutions.
        Parameters:
        solutions - the solutions value to set.
        Returns:
        the AbnormalTimePeriod object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.