Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1.        
  2. public static class Parameters extends AbstractParameters {
  3.  @Param(name = "thresholdDemand",
  4.                 description = "demand above threshold will raise an alert (kW)",
  5.                 formatString = "< %s kW",
  6.                 defaultValue = "100")
  7.  
  8. ...
  9. }
  10.  
  11.  
  12. ---------------------------
  13.  
  14.     public String getFriendlyDescription(String format) {
  15.         return String.format(format, new DecimalFormat(".##").format(value));
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement