Creates a new Continuous Interval node with the specified name and with default states 0.0 - 10.0, 10.0 - 20.0, 20.0 - 30.0, 30.0 - 40.0 and 40.0 - 50.0.
This method will create a new message parse link from the specified source node, and the selected target BN a Clone of the source node will be created and
added to the target BN in order to create the link.
Returns true if all the parents of the node with the connected CoreBNNode AltID in the specified ExtendedBN are present in the Collection or in this
ExtendedBN.
Indicates that before a Scenario is applied to any ExtendedBN in this model, all other evidence is left in the ExtendedBN; the new Scenario is applied "on
top of" any existing evidence.
Applies the Scenarios only to the ExtendedBNs contained in the supplied list using the supplied call sign information and information about which nodes to
include and exclude.
This method uses the generic link generator and the link generator property
uk.co.agena.minervaapps.basicminerva.linkgenerator
in the minerva.properties file to generate the message passing8 links on this model between the BNO's.
Calculates the length of a propagation task based upon the Scenario's and
ExtendedBN's being propagated and the types of ExtendedNode contained in
the ExtnededBN's (Normal or Simulation).
Check the difference between the creation timestamp, stored in the CoreBN's associated with this model, and the current time does not exceed a certain
limit.
Given a Map of the Original ExtendedNodes to their Cloned versions this method clones all the Function information from the original ExtendedNode to the
Clone.
This method will itterate over the data points in the data set, If they are interval data points it will construct new labels for the data points using
their range values the number mask will be appiled to the numbers before they are used in the string
If the number formatted mask provided is null "", then "0.00E0" is used.
Takes the supplied value and creates a DataSet (the first) of likelihood evidence based upon where the value falls with respect to the ExtendedNode's
ExtendedStates.
In the case where there are partitioned expressions, this method makes sure
that the number of current and default functions is the same size as the
number expected based up on the number of state combinations of the model
parent nodes.
When the connNodeId of a node is changed then we need to ensure that all the children of this node are told that the name has changed to that they can
change their functions (if they have any) to reflect this change.
Event received from the extended BN
Invoked whenever the extended BN recieves a BN Node event, this event
throws the event up to any listeners on the extended BN.
Event received from the extended BN
Invoked whenever the extended BN recieves a BN Node event, this event throws the event up to any listeners on the extended BN.
Takes the supplied FamilyMember (that exists as the root of a family
subtree) and goes through recursively setting the parent ID attributes of
children using the ID of the parent.
This method will use the MessagePassingLinks to get all the Ancestors of the argument ExtendedBN
This is done recursively using the getParentExtendedBNs method.
This method will use the MessagePassingLinks to get all the decendents of the argument ExtendedBN
This is done recursively using the getChildrenExtendedBNs method.
Similar to putFunctionInArray but instead when we find the first occurance
of the pattern in the state combination array we return the ExtendedNodeFunction at the
appropiate position in the allFunctions List.
Return the Interval data point with the highest mid point (dirived from the bounding values) if there are no Interval data points connected to the data set
then a null is returned.
Return the Interval data point with the lowest range value (lowest lower bound) if there are no Interval data points connected to the data set then a null
is returned.
Return the Interval data point with the lowest mid point (dirived from the bounding values) if there are no Interval data points connected to the data set
then a null is returned.
Return the Interval data point with the lowest range value (lowest lower bound) if there are no Interval data points connected to the data set then a null
is returned.
Returns the MessagePassingLinks objects associated with this Model as a set of Lists, such that each List contains MessagePassingLinks objects that have
the same priority level.
returns the total value of all data points between the specified points, a value of -1 in a arguement will have it default to the beginning and end of the
data set respectivily
Thus getTotal(-1,-1) will return the total of the whole data set
The order in which the user selected model nodes are added to the specified
list may not be the correct order in which the Model nodes exist in the
reqNodeOrder List.
Flag used by the method createFunctionListForModelNodes to indicate when
throwing an exception whether it is one from which the calling method can
continue from.
Attribute determines whether an update is only called when the call sign in
the propagate event is matched to the call sign in the MDI, or if the
uodate occurs on every occassion
This method will itterate over the message pass links in the message pass link object, and remove those
that are connected to exBNs and exNodes that are in the connected model.
This attribute defines whether the results of the marginal data item should
be made visible to the user (currently restricted to the visibility of the
marginal plot on the monitors)
This method will itterate over the model items (Extended BNs, scenarios and questionnaires), and add to a return list all those that are not connected to
any of the meta data objects connected to the model.
A list of the model event types, including the contents of the array passed as part of the event
------------------------------------------------------------------------------------------
QUESTIONNAIRE_REMOVED
array(0) = The questionaire that was removed
------------------------------------------------------------------------------------------
EXTENDEDBN_NAME_CHANGED
array(0) = ExtendedBNEvent
------------------------------------------------------------------------------------------
SCENERIO ATTRIBUTE CHANGED EVENT
array(0) = ScenarioEvent
array(1) = Integer (class version): attribute that changed (constants available in the ScenarioEvent class)
------------------------------------------------------------------------------------------
EXTENDEDNODE_ATTRIBUTE_CHANGED EVENT
array(0) = Extended Node event
------------------------------------------------------------------------------------------
QUESTION_ATTRIBUTE_CHANGED EVENT
array(0) = Question event
------------------------------------------------------------------------------------------
EXTENDEDNODE_CLONED EVENT
array(0) = Orginal node
array(1) = new cloned node
------------------------------------------------------------------------------------------
EXTENDED_NODES_DELETED
array(0..X) = List of nodes that were deleted
------------------------------------------------------------------------------------------
QUESTION_REMOVED
array(0) = Question removed event
array(1) = List of removed questions
------------------------------------------------------------------------------------------
QUESTION_ADDED
array(0) = List of the new questions added
------------------------------------------------------------------------------------------
EXTENDEDBNS_REMOVED
array(0) = A List of the extended Bns that were removed
------------------------------------------------------------------------------------------
SCENARIOS_IMPORTED
array(0) = List containing two items.
When saving the parameters of an expression it is not possible to save user entered new lines
as these adversly affect subsequent loading of the expression.
NEWLINE -
Static variable in class uk.co.agena.minerva.util.nptgenerator.Function
Example use of NPT Generator with Normal Function is as follows for a Given net with parents
p1,p2 and p3 of a node named "child":
ExtendedBN ebn = (ExtendedBN) this.currentModel.getExtendedBNList().getExtendedBNs().get(0);
List possibileNodes = ebn.getExtendedNodes("child");
ContinuousIntervalEN enode = (ContinuousIntervalEN)possibileNodes.get(0);
// Upto here we are just getting the Interval Node with name "child"
// Now define a Normal on this node with the ExtendedBN and the equation for mean
// and variance using the parents names.
Based on the specified List of ExtendedNodes and List of connections between these nodes this method creates clones of the ExtendedNodes and adds them to
the ExtendedBN with the required connections between the cloned nodes.
This class encapsulates propagation algorithms in which multiple Scenarios
may be applied in different ways to a set of ExtendedBNs over a sequence of
time periods.
Removes an object no longer interested in ExtendedBNEvents from the List of ExtendedBNListeners (actually held by an internal ExtendedBNEventGenerator).
Removes an object no longer interested in ExtendedNodeEvents from the List
of ExtendedNodeListeners (actually held by an internal
ExtendedNodeEventGenerator).
Removes an object no longer interested in ExtendedStateEvents from the
List of ExtendedStateListeners (actually held by an internal
ExtendedStateEventGenerator).
This method will remove all Observations in the Scenario that are related to the specified ExtendedNode (determined by its ID, and the ID of the ExtendedBN
in which it resides).
Removes an object no longer interested in PropagationEvents from the List
of PropagationListeners (actually held by an internal
PropagationEventGenerator).
We can check if this function needs sampling or not by taking each
expression and testing to see if it contains the names of any of the
parents of this node.
This method is added for http://bugzilla.agena.co.uk/show_bug.cgi?id=2309
It will find the state that has the exact state value (hopefully a discrete point, and enter probability value
1 for it.
Attribute determines whether an update is only called when the call sign in
the propagate event is matched to the call sign in the MDI, or if the
uodate occurs on every occassion
This attribute defines whether the results of the marginal data item should
be made visible to the user (currently restricted to the visibility of the
marginal plot on the monitors)
This method should be used to check if the marginals have changed from the last propagation, and if it should continue to
Dynamically Discretise Nodes before it starts doing so.
This method will locate all questions connected to the specified node, and ensure that if the question is configured to auto synchronise the answers to the
states in the connected node then it there is indeed a 1-1 mapping
T
TAB -
Static variable in class uk.co.agena.minerva.util.nptgenerator.Function
This package contains various classes (broken down into four subpackages) that are used throughout Minerva:
helper classes, IO classes, domain modelling classes and classes for generating NPTs.
When ExtendedNodes which have been 'Cut' from another ExtendedBN are being pasted we must remove any references to the ExtendedNodes in the source
ExtendedBN and CoreBN.