Class ImmutableInHostMarkovStateMachine.Builder

java.lang.Object
io.github.ai4ci.abm.inhost.ImmutableInHostMarkovStateMachine.Builder
Enclosing class:
ImmutableInHostMarkovStateMachine

@NotThreadSafe public static final class ImmutableInHostMarkovStateMachine.Builder extends Object
Builds instances of type ImmutableInHostMarkovStateMachine. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      Fill a builder with attribute values from the provided InHostMarkovStateMachine instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setPExposedInfectious

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPExposedInfectious(double pExposedInfectious)
      Initializes the value for the pExposedInfectious attribute.
      Parameters:
      pExposedInfectious - The value for pExposedInfectious
      Returns:
      this builder for use in a chained invocation
    • setPInfectiousImmune

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPInfectiousImmune(double pInfectiousImmune)
      Initializes the value for the pInfectiousImmune attribute.
      Parameters:
      pInfectiousImmune - The value for pInfectiousImmune
      Returns:
      this builder for use in a chained invocation
    • setPImmuneSusceptible

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPImmuneSusceptible(double pImmuneSusceptible)
      Initializes the value for the pImmuneSusceptible attribute.
      Parameters:
      pImmuneSusceptible - The value for pImmuneSusceptible
      Returns:
      this builder for use in a chained invocation
    • setPAsymptomaticSymptomatic

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPAsymptomaticSymptomatic(double pAsymptomaticSymptomatic)
      Initializes the value for the pAsymptomaticSymptomatic attribute.
      Parameters:
      pAsymptomaticSymptomatic - The value for pAsymptomaticSymptomatic
      Returns:
      this builder for use in a chained invocation
    • setPSymptomaticAsymptomatic

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPSymptomaticAsymptomatic(double pSymptomaticAsymptomatic)
      Initializes the value for the pSymptomaticAsymptomatic attribute.
      Parameters:
      pSymptomaticAsymptomatic - The value for pSymptomaticAsymptomatic
      Returns:
      this builder for use in a chained invocation
    • setPSymptomaticHospitalised

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPSymptomaticHospitalised(double pSymptomaticHospitalised)
      Initializes the value for the pSymptomaticHospitalised attribute.
      Parameters:
      pSymptomaticHospitalised - The value for pSymptomaticHospitalised
      Returns:
      this builder for use in a chained invocation
    • setPSymptomaticDead

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPSymptomaticDead(double pSymptomaticDead)
      Initializes the value for the pSymptomaticDead attribute.
      Parameters:
      pSymptomaticDead - The value for pSymptomaticDead
      Returns:
      this builder for use in a chained invocation
    • setPHospitalisedDead

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPHospitalisedDead(double pHospitalisedDead)
      Initializes the value for the pHospitalisedDead attribute.
      Parameters:
      pHospitalisedDead - The value for pHospitalisedDead
      Returns:
      this builder for use in a chained invocation
    • setPHospitalisedAsymptomatic

      @CanIgnoreReturnValue public final ImmutableInHostMarkovStateMachine.Builder setPHospitalisedAsymptomatic(double pHospitalisedAsymptomatic)
      Initializes the value for the pHospitalisedAsymptomatic attribute.
      Parameters:
      pHospitalisedAsymptomatic - The value for pHospitalisedAsymptomatic
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of InHostMarkovStateMachine
      Throws:
      IllegalStateException - if any required attributes are missing