Class EvProbD

java.lang.Object
io.nosqlbench.virtdata.library.basics.core.stathelpers.EvProbD
All Implemented Interfaces:
java.lang.Comparable<EvProbD>

public class EvProbD
extends java.lang.Object
implements java.lang.Comparable<EvProbD>
A simple wrapper type for "Event Probability", where the event is identified by a unique int, and the probability is represented with double precision floating-point.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.Comparator<EvProbD> DESCENDING_PROBABILTY  
  • Constructor Summary

    Constructors 
    Constructor Description
    EvProbD​(int eventId, double probability)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(EvProbD other)  
    int getEventId()  
    double getProbability()  
    void setProbability​(double probability)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • EvProbD

      public EvProbD​(int eventId, double probability)
  • Method Details

    • getProbability

      public double getProbability()
    • getEventId

      public int getEventId()
    • compareTo

      public int compareTo​(EvProbD other)
      Specified by:
      compareTo in interface java.lang.Comparable<EvProbD>
    • setProbability

      public void setProbability​(double probability)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object