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); }
public AbstractScenario(int id, AbstractScenarioFactory factory) { itsScenarioID = id; dbBroker = DatabaseBroker.getInstance(); InitialWithFactory(factory); }