Message for an Observer. More...
Inheritance diagram for cogitant.base.ObserverMessage:Public Types | |
| enum | Type { GRAPH_NODE_ADD, GRAPH_NODE_DEL, GRAPH_NODE_CHANGE, GRAPH_NODE_MERGE_BEFORE, GRAPH_NODE_MERGE_AFTER, GRAPH_NODE_ID_CHANGE, GRAPH_NODE_COMEFROM, GRAPH_RULE_APPLICATION, OPERATION_PROGRESS, IOERROR, NOTYPE } |
Message type. More... | |
Public Member Functions | |
| ObserverMessage (Type t) | |
| Constructor. | |
| Type | type () |
| Type of the message. | |
| String | toString () |
| Debug toString() method. | |
Protected Attributes | |
| Type | m_type |
Message for an Observer.
Message type.
| GRAPH_NODE_ADD |
A node has been added to a graph. Messages of this type are represented by an ObserverMessageGraph where node() is the id of the new node. |
| GRAPH_NODE_DEL |
A node has been deleted. Messages of this type are represented by an ObserverMessageGraph where node() is the id of the deleted node. |
| GRAPH_NODE_CHANGE |
A node has been changed (properties, type, referent, etc). Messages of this type are represented by an ObserverMessageGraph where node() is the id of the modified node. |
| GRAPH_NODE_MERGE_BEFORE |
Two nodes are beeing merged. Messages of this type are represented by an ObserverMessageGraph where node() and secondnode() are the ids of the nodes. |
| GRAPH_NODE_MERGE_AFTER |
Two nodes were merged. Messages of this type are represented by an ObserverMessageGraph where node() is the id of the result of the merge. |
| GRAPH_NODE_ID_CHANGE |
The (internal) id of a node has been modified. Messages of this type are represented by an ObserverMessageGraph where node() is the old id of the node and secondnode() is its new id. |
| GRAPH_NODE_COMEFROM |
A node has been added or modified by a disjoint sum or a rule application. Messages of this type are represented by en ObserverMessageGraphNodeComeFrom and contain information about the rule and the node of conclusion of the rule that added or changed the node of the graph. |
| GRAPH_RULE_APPLICATION |
A rule is being applied on a graph. Messages of this type are represented by an ObserverMessageGraphRuleApplication. |
| OPERATION_PROGRESS |
An operation is running. |
| IOERROR |
A Input/Output operation has fond an error or a warning. |
| NOTYPE |
Undefined message. |
| cogitant.base.ObserverMessage.ObserverMessage | ( | Type | t | ) |
Constructor.
References cogitant.base.ObserverMessage.m_type.
| String cogitant.base.ObserverMessage.toString | ( | ) |
Debug toString() method.
Reimplemented in cogitant.base.ObserverMessageGraph, cogitant.base.ObserverMessageGraphNodeComeFrom, and cogitant.base.ObserverMessageGraphRuleApplication.
References cogitant.base.ObserverMessage.m_type.
| Type cogitant.base.ObserverMessage.type | ( | ) |
Type of the message.
References cogitant.base.ObserverMessage.m_type.