public interface IServerManager
Red (jkillian) |
Red (jkillian) |
Modifier and Type | Method and Description |
---|---|
void |
close(Ticket ticket)
Shut down the thread associated with the user's ticket.
|
byte[] |
downloadModel(java.lang.String url)
Download the selected model to the client.
|
java.lang.String[] |
getLayoutListing(java.lang.String url)
Get a listing of the layouts for a specific model available on the
server in either the database or the local file system.
|
java.lang.String[] |
getModelListing()
Get a listing of the models available on the server in either the
database or the local file system.
|
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getTokenHandlerMap()
Get the token handlers loaded on the server so that they can be
set up on the client.
|
ProxyModelResponse |
open(java.lang.String modelUrl,
java.lang.String layoutUrl)
Open a model with the provided model URL and wait for the
user to request the execution of the simulation.
|
void |
pause(Ticket ticket)
Pause the execution of the selected simulation.
|
void |
resume(Ticket ticket)
Resume the execution of the selected simulation.
|
void |
start(Ticket ticket)
Start the execution of the selected simulation.
|
void |
stop(Ticket ticket)
Stop the execution of the selected simulation.
|
void close(Ticket ticket) throws IllegalActionException
ticket
- Ticket reference to the simulation request.IllegalActionException
- If the server was unable to
destroy the simulation thread.byte[] downloadModel(java.lang.String url) throws IllegalActionException
url
- URL of the model file.IllegalActionException
- If the server encountered an error opening the model file.java.lang.String[] getModelListing() throws IllegalActionException
IllegalActionException
- If there was a problem discovering available models.java.lang.String[] getLayoutListing(java.lang.String url) throws IllegalActionException
url
- Address of the model file for which layouts are found.IllegalActionException
- If there was a problem discovering available layouts.java.util.LinkedHashMap<java.lang.String,java.lang.String> getTokenHandlerMap() throws IllegalActionException
IllegalActionException
- If the server was unable to get the handler map.ProxyModelResponse open(java.lang.String modelUrl, java.lang.String layoutUrl) throws IllegalActionException
modelUrl
- The path to the model filelayoutUrl
- The path to a model's layout fileIllegalActionException
- If the model fails to load
from the provided URL.void pause(Ticket ticket) throws IllegalActionException
ticket
- The ticket reference to the simulation request.IllegalActionException
- If the server was unable to
pause the running simulation.void resume(Ticket ticket) throws IllegalActionException
ticket
- The ticket reference to the simulation request.IllegalActionException
- If the server was unable to
resume the execution of the simulation.void start(Ticket ticket) throws IllegalActionException
ticket
- The ticket reference to the simulation request.IllegalActionException
- If the server was unable to
start the simulation.void stop(Ticket ticket) throws IllegalActionException
ticket
- The ticket reference to the simulation request.IllegalActionException
- If the server was unable to
stop the simulation.