RSLTL shortcuts and gene expr example

This commit is contained in:
Artur Meski
2017-11-26 20:06:58 +00:00
parent 4dbeac742d
commit 2c399dc5c1
3 changed files with 87 additions and 7 deletions

26
rsltl_shortcuts.py Normal file
View File

@@ -0,0 +1,26 @@
from logics import *
##### SHORTCUTS
def bag_True():
return BagDescription.f_TRUE()
def bag_entity(name):
return BagDescription.f_entity(name)
def ltl_F(a0, ctx_arg=None):
if ctx_arg == None:
ctx_arg = bag_True()
return Formula_rsLTL.f_F(ctx_arg, a0)
def ltl_G(a0, ctx_arg=None):
if ctx_arg == None:
ctx_arg = bag_True()
return Formula_rsLTL.f_G(ctx_arg, a0)
def ltl_X(a0, ctx_arg=None):
if ctx_arg == None:
ctx_arg = bag_True()
return Formula_rsLTL.f_X(ctx_arg, a0)