davidhstocker / Graphyne

Graphyne is a smart graph - a property graph capable to actively reacting to changes and incorporating decision making logic, written in Python. It is designed to be easy to integrate into your Python projects, simple to use and very powerful. It uses Memetic as its graph definition and query language. It is capable of running with or without persistence.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Humanize" the State Event Restriction List

davidhstocker opened this issue · comments

Currently, the State Event Script uses a numeric Memetic restriction, 0, 1 or 2. This is in no way human readable and presents a UX problem for the designer. Currently from setStateEventScript()

            if state == 0:
                self.initScript = function
            elif state == 1:    
                self.execScript = function
            elif state == 2:    
                self.terminateScript = function  

These integer values should be strings:
initialization
execution
termination

This should be done before the first tag is created, so that we don't introduce incompatible changes.