@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(); }
@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(); }