public static class SearchNode.StateChange extends Object
StateChange class is used to store the state change of an activation that occurs in each node of
the binary search tree. When a candidate refinement is selected during the search, then the activation values of
all affected activation objects are adjusted. The changes to the activation values are also propagated through
the network. The old state needs to be stored here in order for the search to be able to restore the old network
state before following the alternative search branch.| Modifier and Type | Class and Description |
|---|---|
static class |
SearchNode.StateChange.Mode |
| Modifier and Type | Field and Description |
|---|---|
Activation |
act |
Activation.Rounds |
newRounds |
Activation.Rounds |
oldRounds |
| Constructor and Description |
|---|
StateChange() |
| Modifier and Type | Method and Description |
|---|---|
void |
restoreState(SearchNode.StateChange.Mode m) |
static void |
saveNewState(Activation act) |
static void |
saveOldState(List<SearchNode.StateChange> changes,
Activation act,
long v) |
public Activation act
public Activation.Rounds oldRounds
public Activation.Rounds newRounds
public static void saveOldState(List<SearchNode.StateChange> changes, Activation act, long v)
public static void saveNewState(Activation act)
public void restoreState(SearchNode.StateChange.Mode m)
Copyright © 2017. All rights reserved.