Package samer.mds

Class MDS.SamerStress

  • java.lang.Object
    • samer.mds.MDS.SamerStress
  • All Implemented Interfaces:
    MDS.Stress
    Enclosing class:
    MDS


    public static class MDS.SamerStress
    extends java.lang.Object
    implements MDS.Stress
    • Constructor Summary

      Constructors 
      Constructor and Description
      SamerStress() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double add(double target, double current)
      accumulate stress due to a link and return dStress/dcurrent
      double done()
      return normalised stress and reset for next time
      double get()
      return last value returned by done()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SamerStress

        public SamerStress()
    • Method Detail

      • add

        public double add(double target,
                          double current)
        Description copied from interface: MDS.Stress
        accumulate stress due to a link and return dStress/dcurrent
        Specified by:
        add in interface MDS.Stress
      • done

        public double done()
        Description copied from interface: MDS.Stress
        return normalised stress and reset for next time
        Specified by:
        done in interface MDS.Stress
      • get

        public double get()
        Description copied from interface: MDS.Stress
        return last value returned by done()
        Specified by:
        get in interface MDS.Stress