public class ProxyModelAdapter extends java.lang.Object implements ProxyModelInfrastructure.ProxyModelListener
Red (ahuseyno) |
Red (ahuseyno) |
Constructor and Description |
---|
ProxyModelAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
modelConnectionExpired(ProxyModelInfrastructure proxyModelInfrastructure)
Notify listener about the expiration of the model connection to another remote model.
|
void |
modelException(ProxyModelInfrastructure proxyModelInfrastructure,
java.lang.String message,
java.lang.Throwable exception)
Notify all model listeners that the simulation has experienced an exception.
|
void |
onRemoteEvent(ProxyModelInfrastructure proxyModelInfrastructure,
RemoteEventToken event)
Notify the listener about server event received from the remote ProxyModelInfrastructure.
|
public void modelConnectionExpired(ProxyModelInfrastructure proxyModelInfrastructure)
modelConnectionExpired
in interface ProxyModelInfrastructure.ProxyModelListener
proxyModelInfrastructure
- The infrastructure whose connection expired.public void modelException(ProxyModelInfrastructure proxyModelInfrastructure, java.lang.String message, java.lang.Throwable exception)
modelException
in interface ProxyModelInfrastructure.ProxyModelListener
proxyModelInfrastructure
- The infrastructure where the exception happened.message
- The message explaining what has happened.exception
- The exception that triggered this event.public void onRemoteEvent(ProxyModelInfrastructure proxyModelInfrastructure, RemoteEventToken event)
onRemoteEvent
in interface ProxyModelInfrastructure.ProxyModelListener
proxyModelInfrastructure
- The proxyModelInfrastructure that received the eventevent
- The remote event