Class RewardRate

java.lang.Object
org.oristool.models.stpn.RewardRate

public abstract class RewardRate extends Object
A marking-dependent rate expression.
  • Constructor Details

    • RewardRate

      public RewardRate()
  • Method Details

    • evaluate

      public abstract double evaluate(double time, Marking m)
    • fromString

      public static RewardRate fromString(String expression)
    • nonZero

      public static final MarkingCondition nonZero(double time, RewardRate[] rewardRates)
      Builds a marking condition that matches markings with nonzero reward.
      Parameters:
      time - time, for time-dependant rewards
      rewardRates - reward rates
      Returns:
      a marking condition matching markings with nonzero reward rate