Ejemplo n.º 1
0
class SimulationExperiment:

  def __init__(self):
    self.model  = EulerSubsystemTest("EulSub")
    self.simulator = CBDsimulator(self.model)
 
  def run(self, num_steps=10): # one step = {NOW}
    for i in range(num_steps):
      self.simulator.step()

  def dumpModel(self):
    self.model.dump()

  def dumpSignals(self):
    self.model.dumpSignals()

  def showScopes(self,t):
      self.model.showScopes(t)
Ejemplo n.º 2
0
 def __init__(self):
   self.model  = EulerSubsystemTest("EulSub")
   self.simulator = CBDsimulator(self.model)