Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • No time dependencies - simulate for 24 hours.
  • day attributes              attributes                - simulate for 1 week
  • date attributes             attributes              - simulate for 1 month
  • cron attributes             attributes              - simulate for 1 year
  • repeat attributes             - simulate for 1 year

Additionally if time base attributes like, time, today,cron has no minutes, then the simulator will use 1-hour resolution.

Here is an example of a text-based suite definition that use uses a verify attribute, for which we want to check our assumption about the dynamic behaviour.

...


Code Block
suite dead_lock
  family family
    task t1
      trigger t2 == complete
    task t2
      trigger t1 == complete
  endfamily
endsuite



Code Block
languagepy
titlesimulate a deadlock. Create definition in python
from ecflow import Defs,Suite,Family,Task,Trigger
defs = Defs(
        Suite("dead_lock",
            Family('family',
                Task('t1', 
					Trigger("t2 == complete")),
                Task('t2', 
					Trigger("t1 == complete")))))

theResult = defs.simulate(); # simulate the definition
assert len(theResult) != 0, "Expected simulation to return errors" 
print theResult


...