示例#1
0
 public void getScenarioInformation() {
   String st = dbBroker.getSynergyType(itsScenarioID);
   if (st == "RE") {
     setSynergyType(SynergyType.RE);
   } else if (st == "ME") {
     setSynergyType(SynergyType.ME);
   } else {
     setSynergyType(SynergyType.TT);
   }
   itsDescription = dbBroker.getScenarioDescription(itsScenarioID);
 }
示例#2
0
 public AbstractScenario(int id, AbstractScenarioFactory factory) {
   itsScenarioID = id;
   dbBroker = DatabaseBroker.getInstance();
   InitialWithFactory(factory);
 }