|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
uk.co.agena.minerva.model.ModelEvent
public class ModelEvent
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.
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 |
---|
public static int MODELS_MERGED
public static int MESSAGE_PASSING_LINKS_CHANGED
public static int EXTENDEDBNS_ADDED
public static int EXTENDEDBNS_REMOVED
public static int QUESTIONNAIRES_ADDED
public static int QUESTIONNAIRE_REMOVED
public static int SCENARIOS_ADDED
public static int SCENARIOS_REMOVED
public static int EXTENDEDBN_NAME_CHANGED
public static int EXTENDEDBNS_REPLACED
public static int QUESTIONNAIRES_REPLACED
public static int SCENARIOS_REPLACED
public static int QUESTIONS_ADDED
public static int EXTENDED_NODE_ADDED
public static int OBSERVATION_ADDED
public static int OBSERVATION_REMOVED
public static int QUESTION_REMOVED
public static int EXTENDED_NODES_DELETED
public static int EXTENDED_NODE_REPLACED
public static int SCENARIO_ATTRIBUTE_CHANGED
public static int EXTENDEDNODE_ATTRIBUTE_CHANGED
public static int EXTENDEDNODE_CLONED
public static int SCENARIOS_IMPORTED
public static int VARIABLE_ADDED
public static int VARIABLE_REMOVED
public static int QUESTION_ATTRIBUTE_CHANGED
public static int QUESTIONNAIRE_NAME_CHANGED
public static int MODIFICATION_LOGS_CHANGED
public static int EXTENDEDNODE_REMOVED
public static int CONVERGENCE_THRESHOLD_CHANGED
public static int NODE_EDGE_ADDED
public static int STAT_SAMPLE_SIZE_CHANGED
public static int RANKED_SAMPLE_SIZE_CHANGED
public static int EVIDENCE_TOLERANCE_PERCENTAGE_CHANGED
public static int NUM_ITERATIONS_CHANGED
public static int SIMULATION_STATUS_CHANGED
public static int NODE_ENTROPY_CONVERGENCE_CHANGED
public static int NODE_NPT_CHANGED
public static int ALL_NPTS_CHANGED
public static int NODE_TYPE_CHANGED
public static int NODE_STATES_CHANGED
public static int META_DATA_ITEMS_REMOVED
public static int VARIABLE_UPDATED
Constructor Detail |
---|
public ModelEvent(Model model)
model
- the Model to which the ModelEvent relatespublic ModelEvent(Model model, int eventType)
model
- the Model to which the ModelEvent relatespublic ModelEvent(Model model, int eventType, java.util.List eventAttributes)
model
- the Model to which the ModelEvent relateseventType
- the type of the eventeventAttributes
- a List of objects that are relevant to the eventpublic ModelEvent(Model model, java.lang.String errorText, boolean errorFixed)
model
- the Model to which the ModelEvent relateserrorText
- the error text associated with the ModelEventerrorFixed
- whether the error has been fixed or notMethod Detail |
---|
public java.lang.String getErrorText()
public boolean isErrorFixed()
public int getEventType()
public void setEventType(int eventType)
public java.util.List getEventAttributes()
public void setEventAttributes(java.util.List eventAttributes)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |