better routing solution
This commit is contained in:
1 parent
56cc4fced5
commit
37598479cc
10 files changed
+469
-66
No files matched your search
@@ -5,6 +5,15 @@ function validate(obj)
|
||||
arguments (Output)
|
||||
end
|
||||
|
||||
%% Mode Validators
|
||||
if obj.useRoutingTopology && ~obj.useSinrComms
|
||||
error("Routing topology requires SINR comms mode (useSinrComms)");
|
||||
end
|
||||
|
||||
if obj.useRoutingTopology && obj.useFixedTopology
|
||||
error("useRoutingTopology and useFixedTopology are mutually exclusive topology selectors");
|
||||
end
|
||||
|
||||
%% Communications Network Validators
|
||||
if max(conncomp(graph(obj.adjacency))) ~= 1
|
||||
error("Network is not connected");
|
||||
|
||||
Reference in new issue
Block a user