Skip to content

Constants

mstern98 edited this page Mar 25, 2021 · 3 revisions
Context ::
topylogic.NONE=0, ''Start with multiple states. Transition to only one state from each vertex'' topylogic.NONE_UNSAFE=8 ''Same as NONE but the edge function can access the second vertices shared variables'' topylogic.SINGLE=1, ''Start at one vertex and switch to one vertex. No threads'' topylogic.SWITCH=2, ''Start with multiple states. Transition to multiple states creating a new thread for each'' topylogic.SWITCH_UNSAFE=10, ''Same as switch but handles shared variables like NONE_UNSAFE''
Memory options ::
topylogic.ABORT=0, ''End program if thread cannot be spawned'' topylogic.WAIT=1, ''Try again. Will try up to max_attempts'' topylogic.CONTINUE, ''Don't spawn this thread. Ignore the problem''
Snapshot (By using a value, n, > 0 then the program will print every n state changes)::
topylogic.NO_SNAP=-1, ''Don't print anything'' topylogic.START_STOP=0, ''Print the first and last state''
Verbosity ::
topylogic.NO_VERB=0, ''Print nothing'' topylogic.VERTICES=1, ''Print vertices in the graph'' topylogic.EDGES=2, ''Print the edges in the graph'' topylogic.FUNCTIONS=4, ''Print the functions of the vertices and edges'' topylogic.GLOBALS=8, ''Print the global variables''
Clone this wiki locally