Package com.comsol.model.util
Interface ModelChangedHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ModelChangedHandler
Interface for handle updates of the client when another client has modified any models in use by this client.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
handleModelChangeOnServer(ModelChangeInfo modelChangeInfo)
Called when another client has changed any models in use by this client.default boolean
triggeredByChangesFromThisClient()
By default the methodhandleModelChangeOnServer(ModelChangeInfo)
is only called when model changes are made by another client.
-
-
-
Method Detail
-
handleModelChangeOnServer
void handleModelChangeOnServer(ModelChangeInfo modelChangeInfo)
Called when another client has changed any models in use by this client.- Parameters:
modelChangeInfo
- Information about the changes.
-
triggeredByChangesFromThisClient
default boolean triggeredByChangesFromThisClient()
By default the methodhandleModelChangeOnServer(ModelChangeInfo)
is only called when model changes are made by another client. If this method returnstrue
,handleModelChangeOnServer(ModelChangeInfo)
is called also when this client makes changes to the model.
-
-