java.lang.Object
de.rss.fachstudie.MiSim.entities.networking.Dependency

public class Dependency
extends Object
Represents a dependency of an Operation to another Operation.
Author:
Lion Wagner
  • Constructor Details

    • Dependency

      public Dependency​(Operation parent, Operation targetOperation)
      Constructs a new Dependency object to represent the need of one operation to call another. The target operation will be always be required guaranteed. Messages do not use a custom delay.
      Parameters:
      parent - parent operation that requires this dependency
      targetOperation - child operation that may be need to complete the parent operation
    • Dependency

      public Dependency​(Operation parent, Operation targetOperation, double probability)
      Constructs a new Dependency object to represent the need of one operation to call another. Messages do not use a custom delay.
      Parameters:
      parent - parent operation that potentially requires this dependency
      targetOperation - child operation that may be need to complete the parent operation
      probability - probability with which the parent operation needs to call the targetOperation
    • Dependency

      public Dependency​(Operation parent, Operation targetOperation, double probability, Double custom_delay)
      Parameters:
      parent - parent operation that potentially requires this dependency
      targetOperation - child operation that may be need to complete the parent operation
      probability - probability with which the parent operation needs to call the targetOperation
      custom_delay - delay of this dependency that overrides the default network delay, null values will be ignored
  • Method Details

    • getProbability

      public double getProbability()
    • getTargetMicroservice

      public Microservice getTargetMicroservice()
    • getTargetOperation

      public Operation getTargetOperation()
    • setExtraDelay

      public void setExtraDelay​(desmoj.core.dist.NumericalDist<Double> dist)
    • getNextExtraDelay

      public double getNextExtraDelay()
    • hasCustomDelay

      public boolean hasCustomDelay()
    • getNextCustomDelay

      public double getNextCustomDelay()