ProbabilityBasedStrategy

trait ProbabilityBasedStrategy(probability: Double) extends EntranceStrategy

Probability based entrance strategy. It decides if allow the entity to enter based on the probability passed when mixed-in.

class Object
trait Matchable
class Any

Value members

Concrete methods

def canEnter(entity: SimulationEntity): Boolean