示例#1
0
        private OutputSchema create(double endTime, Unit timeDisplaUnit)
        {
            var outputSchema = _objectBaseFactory.Create <OutputSchema>();

            var simIntervalHighResolution = _outputIntervalFactory.Create(0, CoreConstants.HIGH_RESOLUTION_END_TIME_IN_MIN, CoreConstants.HIGH_RESOLUTION_IN_PTS_PER_MIN)
                                            .WithName(PKSimConstants.UI.SimulationIntervalHighResolution);

            var simIntervalLowResolution = _outputIntervalFactory.Create(CoreConstants.HIGH_RESOLUTION_END_TIME_IN_MIN, endTime, CoreConstants.LOW_RESOLUTION_IN_PTS_PER_MIN)
                                           .WithName(PKSimConstants.UI.SimulationIntervalLowResolution);

            simIntervalLowResolution.StartTime.DisplayUnit  = timeDisplaUnit;
            simIntervalLowResolution.EndTime.DisplayUnit    = timeDisplaUnit;
            simIntervalHighResolution.StartTime.DisplayUnit = timeDisplaUnit;
            simIntervalHighResolution.EndTime.DisplayUnit   = timeDisplaUnit;
            outputSchema.AddInterval(simIntervalHighResolution);
            outputSchema.AddInterval(simIntervalLowResolution);
            return(outputSchema);
        }
示例#2
0
 public OutputSchema Create(double startTimeInMin, double endTimeInMin, double resolutionInPtsPerHour)
 {
     return(createWith(_outputIntervalFactory.Create(startTimeInMin, endTimeInMin, resolutionInPtsPerHour)));
 }