OMCRange level6Range = new IntRange (LEVEL_6_MIN.intValue(), LEVEL_6_MAX.intValue()); rangeList = new OMCRangeList (level6Range); publishAdd (level6Horizon = new OperatingModeImpl (LEVEL_6_TIME_HORIZON, rangeList, LEVEL_6_TIME_HORIZON_DEFAULT));
if (modes.isEmpty()) { OMCRange level2Range = new IntRange (LEVEL_2_MIN.intValue(), LEVEL_2_MAX.intValue()); OMCRangeList rangeList = new OMCRangeList (level2Range); publishAdd (level2Horizon = new OperatingModeImpl (LEVEL_2_TIME_HORIZON, rangeList, LEVEL_2_TIME_HORIZON_DEFAULT));
  protected void setupOperatingModes () {    OMCRange level2Range = new IntRange (LEVEL_2_MIN.intValue(), LEVEL_2_MAX.intValue());    OMCRangeList rangeList = new OMCRangeList (level2Range);    publishAdd (level2Horizon = new OperatingModeImpl (LEVEL_2_TIME_HORIZON, rangeList, 						       LEVEL_2_TIME_HORIZON_DEFAULT));    OMCRange level6Range = new IntRange (LEVEL_6_MIN.intValue(), LEVEL_6_MAX.intValue());    rangeList = new OMCRangeList (level6Range);    publishAdd (level6Horizon = new OperatingModeImpl (LEVEL_6_TIME_HORIZON, rangeList,						       LEVEL_6_TIME_HORIZON_DEFAULT));    if(logger.isInfoEnabled())      logger.info (getBindingSite().getAgentIdentifier() + " created operating modes - " + 		   "level 2 time horizon is " + level2Horizon + 		   " and level 6 is " + level6Horizon);  }