uk.co.agena.minerva.model
Class ModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by uk.co.agena.minerva.model.ModelEvent
All Implemented Interfaces:
java.io.Serializable

public class ModelEvent
extends java.util.EventObject

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. The first item will be a Map where the key is a Scenario and the value is another Map. This second Map will contain Observations as keys; the values will be lists of Integers indicating the status of the Observation. The second item will be a list of Scenarios in the order in which they were loaded in. This ordering is not preserved in the Map ------------------------------------------------------------------------------------------ QUESTIONNAIRE_NAME_CHANGED array(0) = The questionnaire event ------------------------------------------------------------------------------------------ MODIFICATION_LOGS_CHANGED array(0) = a list of the exBns whose logs were changed ------------------------------------------------------------------------------------------ OBSERVATION_ADDED array(0) = boolean value that determines whether an auto propagate should occur array(1) = The scenario event array(2) = a list of the added observations ------------------------------------------------------------------------------------------ OBSERVATION_REMOVED array(0) = boolean value that determines whether an auto propagate should occur array(1) = The scenario event array(2) = a list of the added observations ------------------------------------------------------------------------------------------ EXTENDED_NODE_ADDED array(0) = The extened BN event that the model caught array(1) = The Extended BN that the node was added to array(2) = the node that was added ------------------------------------------------------------------------------------------ EXTENDED_NODE_REMOVED array(0) = The extened BN event that the model caught array(1) = The extended BN from which thenode will be removed from array(2) = the node that was removed ------------------------------------------------------------------------------------------ CONVERGENCE_THRESHOLD_CHANGED array(0) = Double(new value); ------------------------------------------------------------------------------------------ NODE_EDGE_ADDED array(0) = The node event array(1) = The parednt node (to which the child is being added) array(2) = the new child node ------------------------------------------------------------------------------------------ SCENARIOS_REMOVED array(0) = The scenario that was removed ------------------------------------------------------------------------------------------ MESSAGE_PASSING_LINKS_CHANGED array(0) = A list of the effected message passing links ------------------------------------------------------------------------------------------ MODIFICATION_LOGS_CHANGED array(0) = a list of the extendedBns that have been changed ------------------------------------------------------------------------------------------ QUESTIONNAIRE_NAME_CHANGED array(0) = The questionnaire event A ModelEvent encapsulates information about a Model that has changed its state in some way.

See Also:
Serialized Form

Field Summary
static int ALL_NPTS_CHANGED
           
static int CONVERGENCE_THRESHOLD_CHANGED
           
static int EVIDENCE_TOLERANCE_PERCENTAGE_CHANGED
           
static int EXTENDED_NODE_ADDED
           
static int EXTENDED_NODE_REPLACED
           
static int EXTENDED_NODES_DELETED
           
static int EXTENDEDBN_NAME_CHANGED
           
static int EXTENDEDBNS_ADDED
           
static int EXTENDEDBNS_REMOVED
           
static int EXTENDEDBNS_REPLACED
           
static int EXTENDEDNODE_ATTRIBUTE_CHANGED
           
static int EXTENDEDNODE_CLONED
           
static int EXTENDEDNODE_REMOVED
           
static int MESSAGE_PASSING_LINKS_CHANGED
           
static int META_DATA_ITEMS_REMOVED
           
static int MODELS_MERGED
           
static int MODIFICATION_LOGS_CHANGED
           
static int NODE_EDGE_ADDED
           
static int NODE_ENTROPY_CONVERGENCE_CHANGED
           
static int NODE_NPT_CHANGED
           
static int NODE_STATES_CHANGED
           
static int NODE_TYPE_CHANGED
           
static int NUM_ITERATIONS_CHANGED
           
static int OBSERVATION_ADDED
           
static int OBSERVATION_REMOVED
           
static int QUESTION_ATTRIBUTE_CHANGED
           
static int QUESTION_REMOVED
           
static int QUESTIONNAIRE_NAME_CHANGED
           
static int QUESTIONNAIRE_REMOVED
           
static int QUESTIONNAIRES_ADDED
           
static int QUESTIONNAIRES_REPLACED
           
static int QUESTIONS_ADDED
           
static int RANKED_SAMPLE_SIZE_CHANGED
           
static int SCENARIO_ATTRIBUTE_CHANGED
           
static int SCENARIOS_ADDED
           
static int SCENARIOS_IMPORTED
           
static int SCENARIOS_REMOVED
           
static int SCENARIOS_REPLACED
           
static int SIMULATION_STATUS_CHANGED
           
static int STAT_SAMPLE_SIZE_CHANGED
           
static int VARIABLE_ADDED
           
static int VARIABLE_REMOVED
           
static int VARIABLE_UPDATED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModelEvent(Model model)
          Constructs a new ModelEvent relating to the supplied Model.
ModelEvent(Model model, int eventType)
          Constructs a new ModelEvent relating to the supplied Model.
ModelEvent(Model model, int eventType, java.util.List eventAttributes)
          Constructs a new ModelEvent relating to the supplied Model.
ModelEvent(Model model, java.lang.String errorText, boolean errorFixed)
          Constructs a new ModelEvent relating to the supplied Model, with the supplied error information.
 
Method Summary
 java.lang.String getErrorText()
          Returns the message associated with this error encapsulated by this ModelEvent.
 java.util.List getEventAttributes()
           
 int getEventType()
           
 boolean isErrorFixed()
          Returns whether the error has been fixed or not.
 void setEventAttributes(java.util.List eventAttributes)
           
 void setEventType(int eventType)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODELS_MERGED

public static int MODELS_MERGED

MESSAGE_PASSING_LINKS_CHANGED

public static int MESSAGE_PASSING_LINKS_CHANGED

EXTENDEDBNS_ADDED

public static int EXTENDEDBNS_ADDED

EXTENDEDBNS_REMOVED

public static int EXTENDEDBNS_REMOVED

QUESTIONNAIRES_ADDED

public static int QUESTIONNAIRES_ADDED

QUESTIONNAIRE_REMOVED

public static int QUESTIONNAIRE_REMOVED

SCENARIOS_ADDED

public static int SCENARIOS_ADDED

SCENARIOS_REMOVED

public static int SCENARIOS_REMOVED

EXTENDEDBN_NAME_CHANGED

public static int EXTENDEDBN_NAME_CHANGED

EXTENDEDBNS_REPLACED

public static int EXTENDEDBNS_REPLACED

QUESTIONNAIRES_REPLACED

public static int QUESTIONNAIRES_REPLACED

SCENARIOS_REPLACED

public static int SCENARIOS_REPLACED

QUESTIONS_ADDED

public static int QUESTIONS_ADDED

EXTENDED_NODE_ADDED

public static int EXTENDED_NODE_ADDED

OBSERVATION_ADDED

public static int OBSERVATION_ADDED

OBSERVATION_REMOVED

public static int OBSERVATION_REMOVED

QUESTION_REMOVED

public static int QUESTION_REMOVED

EXTENDED_NODES_DELETED

public static int EXTENDED_NODES_DELETED

EXTENDED_NODE_REPLACED

public static int EXTENDED_NODE_REPLACED

SCENARIO_ATTRIBUTE_CHANGED

public static int SCENARIO_ATTRIBUTE_CHANGED

EXTENDEDNODE_ATTRIBUTE_CHANGED

public static int EXTENDEDNODE_ATTRIBUTE_CHANGED

EXTENDEDNODE_CLONED

public static int EXTENDEDNODE_CLONED

SCENARIOS_IMPORTED

public static int SCENARIOS_IMPORTED

VARIABLE_ADDED

public static int VARIABLE_ADDED

VARIABLE_REMOVED

public static int VARIABLE_REMOVED

QUESTION_ATTRIBUTE_CHANGED

public static int QUESTION_ATTRIBUTE_CHANGED

QUESTIONNAIRE_NAME_CHANGED

public static int QUESTIONNAIRE_NAME_CHANGED

MODIFICATION_LOGS_CHANGED

public static int MODIFICATION_LOGS_CHANGED

EXTENDEDNODE_REMOVED

public static int EXTENDEDNODE_REMOVED

CONVERGENCE_THRESHOLD_CHANGED

public static int CONVERGENCE_THRESHOLD_CHANGED

NODE_EDGE_ADDED

public static int NODE_EDGE_ADDED

STAT_SAMPLE_SIZE_CHANGED

public static int STAT_SAMPLE_SIZE_CHANGED

RANKED_SAMPLE_SIZE_CHANGED

public static int RANKED_SAMPLE_SIZE_CHANGED

EVIDENCE_TOLERANCE_PERCENTAGE_CHANGED

public static int EVIDENCE_TOLERANCE_PERCENTAGE_CHANGED

NUM_ITERATIONS_CHANGED

public static int NUM_ITERATIONS_CHANGED

SIMULATION_STATUS_CHANGED

public static int SIMULATION_STATUS_CHANGED

NODE_ENTROPY_CONVERGENCE_CHANGED

public static int NODE_ENTROPY_CONVERGENCE_CHANGED

NODE_NPT_CHANGED

public static int NODE_NPT_CHANGED

ALL_NPTS_CHANGED

public static int ALL_NPTS_CHANGED

NODE_TYPE_CHANGED

public static int NODE_TYPE_CHANGED

NODE_STATES_CHANGED

public static int NODE_STATES_CHANGED

META_DATA_ITEMS_REMOVED

public static int META_DATA_ITEMS_REMOVED

VARIABLE_UPDATED

public static int VARIABLE_UPDATED
Constructor Detail

ModelEvent

public ModelEvent(Model model)
Constructs a new ModelEvent relating to the supplied Model.

Parameters:
model - the Model to which the ModelEvent relates

ModelEvent

public ModelEvent(Model model,
                  int eventType)
Constructs a new ModelEvent relating to the supplied Model. Dictate the event type like if an extendedBn has been removed or added etc.

Parameters:
model - the Model to which the ModelEvent relates

ModelEvent

public ModelEvent(Model model,
                  int eventType,
                  java.util.List eventAttributes)
Constructs a new ModelEvent relating to the supplied Model. Dictate the event type like if an extendedBn has been removed or added etc.

Parameters:
model - the Model to which the ModelEvent relates
eventType - the type of the event
eventAttributes - a List of objects that are relevant to the event

ModelEvent

public ModelEvent(Model model,
                  java.lang.String errorText,
                  boolean errorFixed)
Constructs a new ModelEvent relating to the supplied Model, with the supplied error information.

Parameters:
model - the Model to which the ModelEvent relates
errorText - the error text associated with the ModelEvent
errorFixed - whether the error has been fixed or not
Method Detail

getErrorText

public java.lang.String getErrorText()
Returns the message associated with this error encapsulated by this ModelEvent.

Returns:
errorText the error message information

isErrorFixed

public boolean isErrorFixed()
Returns whether the error has been fixed or not.

Returns:
true if the error has been fixed, false otherwise

getEventType

public int getEventType()

setEventType

public void setEventType(int eventType)

getEventAttributes

public java.util.List getEventAttributes()

setEventAttributes

public void setEventAttributes(java.util.List eventAttributes)


Copyright © 2006 Agena Ltd. All Rights Reserved.