|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.autonomy.utility.InfluenceDiagramBuildingTools
public class InfluenceDiagramBuildingTools
Constructor Summary | |
---|---|
InfluenceDiagramBuildingTools()
|
Method Summary | |
---|---|
void |
buildIndividualLink(Node[] childNode,
Node[] parentNode)
build link from child nodes to parent nodes (one-to-one) |
java.lang.String |
createStateList(java.lang.String[] states)
create a single string that includes all individual states distinguished by comma |
void |
deleteNodes(Node[] tempNode)
Removes all the nodes in node array from their net, and deletes them. |
void |
discretizeNode(Node[] tempNode,
int num,
double maxCostValue)
discretize given nodes |
java.lang.String[] |
getParentStateList(NodeList parents)
get the list of parents' state indices |
void |
instantiateNode(Net tempNet,
Node[] tempNode,
java.lang.String[] nodeType,
int size,
int num)
instantiate Netica nodes |
void |
instantiateNode(Net tempNet,
Node[] tempNode,
java.lang.String[] nodeType,
java.lang.String states,
int num)
instantiate Netica nodes |
boolean |
nextStates(int[] states,
NodeList nodeList)
get next states used for "enterValueToNodeFromParents() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfluenceDiagramBuildingTools()
Method Detail |
---|
public void instantiateNode(Net tempNet, Node[] tempNode, java.lang.String[] nodeType, java.lang.String states, int num)
tempNet
- A Bayesian decision networktempNode
- List of Netica nodesnodeType
- List of node features represented by strings (e.g., resource/service name)states
- List of states for the node featuresnum
- Number of nodes to instantiatepublic void instantiateNode(Net tempNet, Node[] tempNode, java.lang.String[] nodeType, int size, int num)
tempNet
- A Bayesian decision networktempNode
- List of Netica nodesnodeType
- List of node features (e.g., resource/service name)size
- Number of levels (i.e., number of numeric values...mainly for cost node)num
- Number of nodes to instantiatepublic void discretizeNode(Node[] tempNode, int num, double maxCostValue)
tempNode
- List of Netica nodesnum
- Number of levels in discretizationmaxCostValue
- The value of the last levelpublic void buildIndividualLink(Node[] childNode, Node[] parentNode)
childNode
- List of child nodesparentNode
- List of parent nodespublic boolean nextStates(int[] states, NodeList nodeList) throws NeticaException
states
- States of the next node in a node listnodeList
- List of nodes
NeticaException
- if error in getting a node from a node listpublic java.lang.String createStateList(java.lang.String[] states)
states
- List of states
public java.lang.String[] getParentStateList(NodeList parents)
parents
- List of parent nodes
public void deleteNodes(Node[] tempNode) throws NeticaException
tempNode
- the nodes to delete
NeticaException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |