Пример #1
0
 /**
  * @param trans_Time
  * @return
  */
 public CESMStart time(Var trans_Time) {
   // trans_Time uses format HHMMSS
   int nNbSecondsSinceMidnightFromNow_s = DateUtil.getNbSecondSinceMidnight();
   int nNextTime_s = DateUtil.getNbSecondsFromHour(trans_Time.getInt());
   if (nNbSecondsSinceMidnightFromNow_s < nNextTime_s) // We are before next time
   m_nIntervalTimeSeconds = nNextTime_s - nNbSecondsSinceMidnightFromNow_s;
   else m_nIntervalTimeSeconds = 0;
   return this;
 }
 public void doFillWithVar(Var varSource) {
   m_dValue = varSource.getDouble();
 }
 public void MapOn(Var varLinkageSection) {
   varLinkageSection.set(m_dValue);
 }
Пример #4
0
 /**
  * @param interval
  * @return
  */
 public CESMStart interval(Var interval) {
   // interval uses format HHMMSS
   m_nIntervalTimeSeconds = DateUtil.getNbSecondsFromHour(interval.getInt());
   return this;
 }