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/dcurrentdouble
done()
return normalised stress and reset for next timedouble
get()
return last value returned by done()
-
-
-
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 interfaceMDS.Stress
-
done
public double done()
Description copied from interface:MDS.Stress
return normalised stress and reset for next time- Specified by:
done
in interfaceMDS.Stress
-
get
public double get()
Description copied from interface:MDS.Stress
return last value returned by done()- Specified by:
get
in interfaceMDS.Stress
-
-