InfectionLogic

Module that contains the entity infection logic concepts.

class Object
trait Matchable
class Any

Type members

Classlikes

Logic that handle the infection in the environment, external to structures.

Logic that handle the infection in the environment, external to structures.

case class ExternalProbableInfection(env: Environment, entity: SimulationEntity, infectors: Set[SimulationEntity])

It models a probable infection of an entity in the environment, outside to structures.

It models a probable infection of an entity in the environment, outside to structures.

Logic that handle the infection inside the structures of the environment.

Logic that handle the infection inside the structures of the environment.

It models a probable infection of an entity inside a structure.

It models a probable infection of an entity inside a structure.

Extensions

Extensions

extension (e: SimulationEntity)
def infected(timestamp: TimeStamp, virus: Virus): SimulationEntity

It allow to create and set the infection on an entity.

It allow to create and set the infection on an entity.

def maskReduction: Int

It allow to obtain the reduction on the spread of the virus based on the current state of the mask.

It allow to obtain the reduction on the spread of the virus based on the current state of the mask.