LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
resetModel.m
1function resetModel(self, resetState)
2% RESETMODEL(RESETSTATE, RESETHANDLES)
3%
4% If RESETSTATE is true, the model requires re-initialization
5% of its state
6
7resetHandles(self);
8
9if self.hasStruct
10 if isempty(self.sn)
11 rtorig = [];
12 else
13 rtorig = self.sn.rtorig; % save linked routing table
14 end
15 self.sn = [];
16 self.sn.rtorig = rtorig;
17 self.hasStruct = false;
18end
19
20if nargin == 2 && resetState
21 self.hasState = false;
22end
23for ind = 1:length(self.getNodes)
24 self.nodes{ind}.reset();
25end
26end
Definition mmt.m:92