Structures

object Structures

This module contains the base simulation structure description and the main implementations that are useful during the simulation configuration.

class Object
trait Matchable
class Any

Type members

Classlikes

case class GenericBuilding(position: Point2D, infectionProbability: Double, capacity: Int, permanenceTimeDistribution: GaussianDurationTime, entranceStrategy: EntranceStrategy, entities: Set[EntityPermanence], isOpen: Boolean, visibilityDistance: Distance, group: String) extends SimulationStructure with Closable with Visible with Groupable

Builder for the GenericBuilding type of structure.

Builder for the GenericBuilding type of structure.

Value parameters:
capacity

the capacity of the structure in terms of the number of entities that can enter

entities

the entities that are inside the structure.

entranceStrategy

the strategy used for discriminate the entities entrance

group

the group of the structure

infectionProbability

the probability of infection inside the structure

isOpen

opening status of the structure

permanenceTimeDistribution

gaussian distribution that describe the permanence time

position

the position of the building

visibilityDistance

the distance within the structure is visible for an entity

case class Hospital(position: Point2D, infectionProbability: Double, capacity: Int, permanenceTimeDistribution: GaussianDurationTime, entranceStrategy: EntranceStrategy, entities: Set[EntityPermanence], visibilityDistance: Distance, treatmentQuality: TreatmentQuality) extends SimulationStructure with Visible with Hospitalization

Builder for the Hospital type of structure.

Builder for the Hospital type of structure.

Value parameters:
capacity

the capacity of the structure in terms of the number of entities that can enter

entities

the entities that are inside the structure.

entranceStrategy

the strategy used to discriminate the entities entrance

infectionProbability

the probability of infection inside the structure

permanenceTimeDistribution

gaussian distribution that describe the permanence time

position

the position of the hospital

treatmentQuality

the virus treatment quality

visibilityDistance

the distance within which the structure is visible by an entity

case class House(position: Point2D, infectionProbability: Double, capacity: Int, permanenceTimeDistribution: GaussianDurationTime, entities: Set[EntityPermanence], visibilityDistance: Distance) extends SimulationStructure with Habitable with Visible

Builder for the House type of structure.

Builder for the House type of structure.

Value parameters:
capacity

the capacity of the structure in terms of the number of entities that can enter

entities

the entities that are inside the structure.

infectionProbability

the probability of infection inside the structure

permanenceTimeDistribution

gaussian distribution that describe the permanence time

position

the position of the house

visibilityDistance

the distance within which the house is visible by the entities.

It's the simulation Structure. It specifies all the types, connecting them to the other types in the simulator

It's the simulation Structure. It specifies all the types, connecting them to the other types in the simulator