|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.bayesnet.BayesNetChange
Defines a change to the BayesNet.
Details:
- Stores the ID of the current node, the ID and the lag of the parent node,
and type and status of a change that can be applied to a BayesNet (as represented
by a BayesNetManager).
The status value is used for tracking the proper use of a bayesNetChange within
the search process. Acceptable values are:
   CHANGESTATUS_READY - used when the change is assigned and
ready to be applied
   CHANGESTATUS_APPLIED - after the change has been applied to
the bayes net
   CHANGESTATUS_UNDONE - after the change has been undone (i.e., the
change did not lead to a higher score)
Change History:
Created on Mar 10, 2004
Field Summary | |
private int |
changeStatus
|
private int |
changeType
|
private int |
currentNodeID
|
private int |
parentNodeID
|
private int |
parentNodeLag
|
Constructor Summary | |
BayesNetChange()
|
|
BayesNetChange(BayesNetChangeI _bayesNetChange)
|
|
BayesNetChange(int currentNodeID,
int _parentNodeID,
int _parentNodeLag,
int _changeType)
|
Method Summary | |
int |
getChangeStatus()
|
int |
getChangeType()
|
int |
getCurrentNodeID()
|
int |
getParentNodeID()
|
int |
getParentNodeLag()
|
void |
resetChange()
Special case of update. |
void |
setChangeStatus(int _changeStatus)
The status of a BayesNetChange may change over the search process. |
java.lang.String |
toString()
|
void |
updateChange(BayesNetChangeI _bayesNetChange)
|
void |
updateChange(int _currentNodeID,
int _parentNodeID,
int _parentNodeLag,
int _changeType)
Sets a BayesNetChange by assigning the currentNodeID, the parentNodeID, the parentNodeLag, and the changeType. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int currentNodeID
private int parentNodeID
private int parentNodeLag
private int changeType
private int changeStatus
Constructor Detail |
public BayesNetChange()
public BayesNetChange(int currentNodeID, int _parentNodeID, int _parentNodeLag, int _changeType)
public BayesNetChange(BayesNetChangeI _bayesNetChange)
Method Detail |
public void updateChange(BayesNetChangeI _bayesNetChange)
public void updateChange(int _currentNodeID, int _parentNodeID, int _parentNodeLag, int _changeType)
BayesNetChangeI
updateChange
in interface BayesNetChangeI
_currentNodeID
- The currentNodeID to set._parentNodeID
- The parentNodeID to set._parentNodeLag
- The parentNodeLag to set._changeType
- The changeType to set.public void resetChange()
BayesNetChangeI
resetChange
in interface BayesNetChangeI
public int getChangeType()
getChangeType
in interface BayesNetChangeI
public int getChangeStatus()
getChangeStatus
in interface BayesNetChangeI
public void setChangeStatus(int _changeStatus)
BayesNetChangeI
setChangeStatus
in interface BayesNetChangeI
_changeStatus
- The changeStatus to set.public int getCurrentNodeID()
getCurrentNodeID
in interface BayesNetChangeI
public int getParentNodeID()
getParentNodeID
in interface BayesNetChangeI
public int getParentNodeLag()
getParentNodeLag
in interface BayesNetChangeI
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |