Commit a19c4784 authored by Rémi's avatar Rémi
Browse files

Update addergraph getters and setters

parent b1e49966
name = "AdderGraphs"
uuid = "818587fb-0c22-4279-a2b9-8b16b5360b71"
version = "0.2.7"
version = "0.2.8"
......@@ -80,7 +80,11 @@ export get_outputs
export get_error_in
export set_error_in!
export are_data_paths_set
export set_data_paths
export are_errors_computed
export set_errors_computed
export are_full_adders_computed
export set_full_adders_computed
export get_origin
export get_addernode_by_value
export read_addergraph
......
......@@ -40,10 +40,29 @@ function are_data_paths_set(addergraph::AdderGraph)
return addergraph.data_paths
end
function set_data_paths!(addergraph::AdderGraph, data_paths_value::Bool=true)
addergraph.data_paths=data_paths_value
return addergraph
end
function are_errors_computed(addergraph::AdderGraph)
return addergraph.errors_computed
end
function set_errors_computed!(addergraph::AdderGraph, errors_computed_value::Bool=true)
addergraph.errors_computed = errors_computed_value
return addergraph
end
function are_full_adders_computed(addergraph::AdderGraph)
return addergraph.full_adders_computed
end
function set_full_adders_computed!(addergraph::AdderGraph, full_adders_computed_value::Bool=true)
addergraph.full_adders_computed=full_adders_computed_value
return addergraph
end
function get_origin(addergraph::AdderGraph)
return addergraph.origin
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment