|
|
@@ -1,12 +1,11 @@
|
|
|
@enum Structure LI HI HO HOmod
|
|
|
|
|
|
-const tIdentity = (msg::Int) -> msg
|
|
|
const tScaled = (msg::Int) -> Int(floor(sqrt(msg) * 2))
|
|
|
|
|
|
const translation_table = Dict(i => i + 100 for i in 0:1000)
|
|
|
const tAccessed = (msg::Int) -> (get(translation_table, msg % 1000, msg))
|
|
|
|
|
|
-global active_z_function = tIdentity
|
|
|
+global active_z_function = tScaled
|
|
|
|
|
|
# Port Config
|
|
|
function setup_ports!(top_model::CoupledDEVS, type::Structure)
|