Interface BigraphChangeListener
public interface BigraphChangeListener
Listener interface for receiving notifications about bigraph structure changes.
Implementations of this interface can be registered with PureBigraphMutable
to be notified when the bigraph structure is modified.
Usage Example:
bigraph.addChangeListener(new BigraphChangeListener() {
@Override
public void onNodeAdded(BigraphChangeEvent event) {
System.out.println("Node added: " + event.getNode());
}
@Override
public void onNodeRemoved(BigraphChangeEvent event) {
System.out.println("Node removed: " + event.getNode());
}
});
- Author:
- AI Assistant
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEdgeAdded(BigraphChangeEvent event) Called when an edge is added to the bigraph.default voidonEdgeRemoved(BigraphChangeEvent event) Called when an edge is removed from the bigraph.default voidCalled when an inner name is added to the bigraph.default voidCalled when an inner name is connected to a link.default voidCalled when an inner name is removed from the bigraph.default voidCalled when an inner name is disconnected from a link.default voidCalled when a port is connected to a link.default voidCalled when a port is disconnected from a link.default voidonNodeAdded(BigraphChangeEvent event) Called when a node is added to the bigraph.default voidonNodeMoved(BigraphChangeEvent event) Called when a node is moved to a different parent.default voidonNodeRemoved(BigraphChangeEvent event) Called when a node is removed from the bigraph.default voidCalled when an outer name is added to the bigraph.default voidCalled when an outer name is removed from the bigraph.default voidonRootAdded(BigraphChangeEvent event) Called when a root is added to the bigraph.default voidonRootRemoved(BigraphChangeEvent event) Called when a root is removed from the bigraph.default voidonSiteAdded(BigraphChangeEvent event) Called when a site is added to the bigraph.default voidonSiteRemoved(BigraphChangeEvent event) Called when a site is removed from the bigraph.
-
Method Details
-
onNodeAdded
Called when a node is added to the bigraph.- Parameters:
event- the event containing details about the added node
-
onNodeRemoved
Called when a node is removed from the bigraph.- Parameters:
event- the event containing details about the removed node
-
onNodeMoved
Called when a node is moved to a different parent.- Parameters:
event- the event containing details about the moved node
-
onRootAdded
Called when a root is added to the bigraph.- Parameters:
event- the event containing details about the added root
-
onRootRemoved
Called when a root is removed from the bigraph.- Parameters:
event- the event containing details about the removed root
-
onEdgeAdded
Called when an edge is added to the bigraph.- Parameters:
event- the event containing details about the added edge
-
onEdgeRemoved
Called when an edge is removed from the bigraph.- Parameters:
event- the event containing details about the removed edge
-
onOuterNameAdded
Called when an outer name is added to the bigraph.- Parameters:
event- the event containing details about the added outer name
-
onOuterNameRemoved
Called when an outer name is removed from the bigraph.- Parameters:
event- the event containing details about the removed outer name
-
onLinkConnected
Called when a port is connected to a link.- Parameters:
event- the event containing details about the connection
-
onLinkDisconnected
Called when a port is disconnected from a link.- Parameters:
event- the event containing details about the disconnection
-
onInnerNameAdded
Called when an inner name is added to the bigraph.- Parameters:
event- the event containing details about the added inner name
-
onInnerNameRemoved
Called when an inner name is removed from the bigraph.- Parameters:
event- the event containing details about the removed inner name
-
onSiteAdded
Called when a site is added to the bigraph.- Parameters:
event- the event containing details about the added site
-
onSiteRemoved
Called when a site is removed from the bigraph.- Parameters:
event- the event containing details about the removed site
-
onInnerNameLinked
Called when an inner name is connected to a link.- Parameters:
event- the event containing details about the connection
-
onInnerNameUnlinked
Called when an inner name is disconnected from a link.- Parameters:
event- the event containing details about the disconnection
-