Example #1
0
  @Override
  public void visitHeartbeatReport(HeartbeatReport from) {
    long start = from.getStartTime().getTime();
    m_hourIndex = (int) ((start - m_currentDay) / TimeHelper.ONE_HOUR);

    super.visitHeartbeatReport(from);
  }
Example #2
0
  @Override
  protected void visitMachineChildren(Machine to, Machine from) {
    for (Period source : from.getPeriods()) {
      int minute = source.getMinute();

      source.setMinute(60 * m_hourIndex + minute);
    }
    super.visitMachineChildren(to, from);
  }