|
@@ -6,6 +6,8 @@ include "random.alh"
|
|
include "library.alh"
|
|
include "library.alh"
|
|
include "io.alh"
|
|
include "io.alh"
|
|
|
|
|
|
|
|
+Boolean afap = False
|
|
|
|
+
|
|
Element function resolve_function(location : String, data : Element):
|
|
Element function resolve_function(location : String, data : Element):
|
|
if (bool_not(dict_in(data["cache_operations"], location))):
|
|
if (bool_not(dict_in(data["cache_operations"], location))):
|
|
dict_add(data["cache_operations"], location, get_func_AL_model(import_node(location)))
|
|
dict_add(data["cache_operations"], location, get_func_AL_model(import_node(location)))
|
|
@@ -340,6 +342,16 @@ Void function process_raised_event(model : Element, event : Element, parameter_a
|
|
elif (scope == "output"):
|
|
elif (scope == "output"):
|
|
// Store it in the output event model
|
|
// Store it in the output event model
|
|
String evt
|
|
String evt
|
|
|
|
+
|
|
|
|
+ if (bool_not(afap)):
|
|
|
|
+ Element val
|
|
|
|
+ val = dict_create()
|
|
|
|
+ dict_add(val, "timestamp", data["time_sim"])
|
|
|
|
+ dict_add(val, "name", read_attribute(model, event, "event"))
|
|
|
|
+ dict_add(val, "parameter", parameter_action)
|
|
|
|
+
|
|
|
|
+ output("EVENT: " + dict_to_string(val))
|
|
|
|
+
|
|
evt = instantiate_node(model, "trace/Event", "")
|
|
evt = instantiate_node(model, "trace/Event", "")
|
|
instantiate_attribute(model, evt, "timestamp", data["time_sim"])
|
|
instantiate_attribute(model, evt, "timestamp", data["time_sim"])
|
|
instantiate_attribute(model, evt, "name", read_attribute(model, event, "event"))
|
|
instantiate_attribute(model, evt, "name", read_attribute(model, event, "event"))
|
|
@@ -736,10 +748,6 @@ Boolean function main(model : Element):
|
|
time_sim = 0.0
|
|
time_sim = 0.0
|
|
dict_add(data, "time_sim", 0.0)
|
|
dict_add(data, "time_sim", 0.0)
|
|
|
|
|
|
- Boolean afap
|
|
|
|
- // NOTE this can be changed to True for testing
|
|
|
|
- afap = False
|
|
|
|
-
|
|
|
|
// Prepare for input
|
|
// Prepare for input
|
|
output("Ready for input!")
|
|
output("Ready for input!")
|
|
|
|
|