Пример #1
0
 @Override
 public void initManager(OcelotlCore ocelotlCore, IDataAggregManager aManager) {
   this.ocelotlCore = ocelotlCore;
   timeManager = (ITimeManager) aManager;
   timeSliceNumber = ocelotlCore.getOcelotlParameters().getTimeSlicesNumber();
   timeSliceDuration =
       ocelotlCore.getOcelotlParameters().getTimeRegion().getTimeDuration() / timeSliceNumber;
   parts = new ArrayList<Part>();
   initParts();
   computeParts();
 }
Пример #2
0
 @Override
 public void setOcelotlCore(final OcelotlCore ocelotlCore) {
   this.ocelotlCore = ocelotlCore;
   timeManager = (ITimeManager) ocelotlCore.getLpaggregManager();
   timeSliceNumber = ocelotlCore.getOcelotlParameters().getTimeSlicesNumber();
   timeSliceDuration =
       ocelotlCore.getOcelotlParameters().getTimeRegion().getTimeDuration() / timeSliceNumber;
   parts = new ArrayList<Part>();
   initParts();
   computeParts();
 }