| Package | Description |
|---|---|
| com.agenarisk.api.model |
| Modifier and Type | Method and Description |
|---|---|
Network |
Model.createNetwork(org.json.JSONObject jsonNetwork)
Creates a Network and adds it to this Model.
|
Network |
Model.createNetwork(org.json.JSONObject jsonNetwork,
boolean withTables)
Creates a Network and adds it to this Model.
|
protected static Network |
Network.createNetwork(Model model,
org.json.JSONObject jsonNetwork)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
protected static Network |
Network.createNetwork(Model model,
org.json.JSONObject jsonNetwork,
boolean withTables)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
protected static Network |
Network.createNetwork(Model model,
String id,
String name)
Factory method to be called by a Model object that is trying to add a Network to itself.
|
Network |
Model.createNetwork(String id)
Creates a new empty Network and adds it to this Model.
|
Network |
Model.createNetwork(String id,
String name)
Creates a new empty Network and adds it to this Model.
|
Network |
Node.getNetwork()
Returns the Network containing this Node.
|
Network |
Model.getNetwork(String id)
Looks up and returns a Network by its ID.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Network> |
Network.getChildren()
Builds and returns a set of Networks, which are children of this Network.
|
List<Network> |
Model.getNetworkList()
Returns Networks of this Model as a list
|
Map<String,Network> |
Model.getNetworks()
Returns a copy of ID-Network map.
|
Set<Network> |
Network.getParents()
Builds and returns a set of Networks, which are parents of this Network.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Network.compareTo(Network o)
Compares this Network object to another based on the Id of this object.
|
protected static Node |
Node.createNode(Network network,
org.json.JSONObject jsonNode)
Factory method to create a Node for use by the Network class.
|
protected static Node |
Node.createNode(Network network,
org.json.JSONObject jsonNode,
boolean withTables)
Factory method to create a Node for use by the Network class.
|
protected static Node |
Node.createNode(Network network,
String id,
String name,
Node.Type type)
Factory method to be called by a Network object that is trying to add a Node to itself.
|
Map<Node,CalculationResult> |
DataSet.getCalculationResults(Network network)
Maps nodes to calculation results in the given network in this data set.
|
Double |
DataSet.getLogProbabilityOfEvidence(Network network) |
Double |
DataSet.getProbabilityOfEvidence(Network network) |
void |
Model.removeNetwork(Network net)
Removes provided Network from this Model, breaks any existing links to and from this Network.
|
boolean |
Network.unlink(Network network)
Removes all links (if any exist) between the two networks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Model.calculate(Collection<Network> networks,
Collection<DataSet> dataSets,
Model.CalculationFlag... flags)
Triggers propagation in this model for provided Networks and DataSets.
If either is null, all Networks or DataSets will be used instead. |
Copyright © 2022. All rights reserved.