Class Dependency
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 Summary
Constructors Constructor Description Dependency(Operation parent, Operation targetOperation)Constructs a new Dependency object to represent the need of one operation to call another.Dependency(Operation parent, Operation targetOperation, double probability)Constructs a new Dependency object to represent the need of one operation to call another.Dependency(Operation parent, Operation targetOperation, double probability, Double custom_delay) -
Method Summary
Modifier and Type Method Description doublegetNextCustomDelay()doublegetNextExtraDelay()doublegetProbability()MicroservicegetTargetMicroservice()OperationgetTargetOperation()booleanhasCustomDelay()voidsetExtraDelay(desmoj.core.dist.NumericalDist<Double> dist)
-
Constructor Details
-
Dependency
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 dependencytargetOperation- child operation that may be need to complete the parent operation
-
Dependency
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 dependencytargetOperation- child operation that may be need to complete the parent operationprobability- probability with which the parent operation needs to call thetargetOperation
-
Dependency
public Dependency(Operation parent, Operation targetOperation, double probability, Double custom_delay)- Parameters:
parent- parent operation that potentially requires this dependencytargetOperation- child operation that may be need to complete the parent operationprobability- probability with which the parent operation needs to call thetargetOperationcustom_delay- delay of this dependency that overrides the default network delay, null values will be ignored
-
-
Method Details
-
getProbability
public double getProbability() -
getTargetMicroservice
-
getTargetOperation
-
setExtraDelay
-
getNextExtraDelay
public double getNextExtraDelay() -
hasCustomDelay
public boolean hasCustomDelay() -
getNextCustomDelay
public double getNextCustomDelay()
-