Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
ae159d4d
Commit
ae159d4d
authored
Jul 26, 2001
by
Christopher Alfeld
Browse files
s/add_score/add_node/g
parent
04451a58
Changes
1
Hide whitespace changes
Inline
Side-by-side
assign/assign_internals.txt
View file @
ae159d4d
...
@@ -42,7 +42,7 @@ Changes and Scoring
...
@@ -42,7 +42,7 @@ Changes and Scoring
The simulated annealing loop interfaces with the scoring system and
The simulated annealing loop interfaces with the scoring system and
the data via two routines, add_node and remove_node. Both routines
the data via two routines, add_node and remove_node. Both routines
update the data structures appropriately and modify the score and
update the data structures appropriately and modify the score and
violations count. add_
scor
e takes a vnode and a pnode to map it to
violations count. add_
nod
e takes a vnode and a pnode to map it to
and returns whether that match is even remotely valid or not.
and returns whether that match is even remotely valid or not.
remove_node just takes a vnode. The initial state of the mapping is
remove_node just takes a vnode. The initial state of the mapping is
assumed to be the null mapping. I.e., no vnodes have been mapped and
assumed to be the null mapping. I.e., no vnodes have been mapped and
...
@@ -61,10 +61,10 @@ four interfaces can either be a test node or up to two delay nodes. A
...
@@ -61,10 +61,10 @@ four interfaces can either be a test node or up to two delay nodes. A
pnode that has not been matched to a vnode is called virgin and can
pnode that has not been matched to a vnode is called virgin and can
take on any of its types. Once it has been mapped to a vnode it
take on any of its types. Once it has been mapped to a vnode it
becomes typed and is locked into a certain type (that of the vnode).
becomes typed and is locked into a certain type (that of the vnode).
When add_
scor
e is called the first thing checked is whether the pnode
When add_
nod
e is called the first thing checked is whether the pnode
has a suitable type for the vnode. If it is virgin then all its types
has a suitable type for the vnode. If it is virgin then all its types
are checked, otherwise only its current type is checked. If the types
are checked, otherwise only its current type is checked. If the types
can not be matched then add_
scor
e returns an invalid condition,
can not be matched then add_
nod
e returns an invalid condition,
otherwise it continues on.
otherwise it continues on.
Each type of a pnode also has a limit. This is the number of vnodes
Each type of a pnode also has a limit. This is the number of vnodes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment