Пример #1
0
 public String toString() {
   StringBuilder sb =
       new StringBuilder("\nPower Profile Constraints for: ").append(powerProfileID);
   sb.append("\nnotification time= ")
       .append(CalendarUtil.toSecondString(contraintTimeNotification));
   sb.append("\nstart after= ").append(CalendarUtil.toSecondString(getStartAfterConstraint()));
   sb.append("\nstop before= ").append(CalendarUtil.toSecondString(getStopBeforeConstraint()));
   sb.append('\n');
   return sb.toString();
 }
Пример #2
0
 public String toString() {
   StringBuilder sb = new StringBuilder("\nPower Profile State for: ").append(powerProfileId);
   sb.append("\nenergy phase ID = ").append(energyPhaseId);
   sb.append("\nremote controllable = " + isRemoteControllable);
   sb.append("\nprofile state = ").append(getNameOf(this));
   sb.append("\nnotification time = ")
       .append(CalendarUtil.toSecondString(stateTimeNotification));
   sb.append('\n');
   return sb.toString();
 }