Class State.SupplyList

java.lang.Object
org.mitre.synthea.engine.State
org.mitre.synthea.engine.State.SupplyList
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
State

public static class State.SupplyList extends State
The SupplyList state includes a list of supplies that are needed for the current encounter. Supplies may include things like PPE for the physician, or other resources and machines.
See Also:
  • Field Details

    • supplies

      public List<org.mitre.synthea.engine.State.SupplyList.SupplyComponent> supplies
      List of components making up this supply list
  • Constructor Details

    • SupplyList

      public SupplyList()
  • Method Details

    • clone

      public State.SupplyList clone()
      Description copied from class: State
      clone() should copy all the necessary variables of this State so that it can be correctly executed and modified without altering the original copy. So for example, 'entered' and 'exited' times should not be copied so the clone can be cleanly executed. Implementation note: the base Object.clone() copies over all fields automatically (as a shallow copy), so we don't need to do that ourselves. Instead, we should 1. explicitly null out any fields that should not be copied, such as entered/exited 2. deep copy mutable reference types, if necessary.
      Overrides:
      clone in class State
    • process

      public boolean process(Person person, long time)
      Description copied from class: State
      Process this State with the given Person at the specified time within the simulation. If this State generates a HealthRecord.Entry during processing, then the resulting data will reside in the State.entry field.
      Specified by:
      process in class State
      Parameters:
      person - : the person being simulated
      time - : the date within the simulated world
      Returns:
      `true` if processing should continue to the next state, `false` if the processing should halt for this time step.