public abstract class MultiModelUtility
extends java.lang.Object
Constructor and Description |
---|
MultiModelUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
handleSubmodelCommand(BaseModel Model,
java.util.List<java.lang.Object> Command)
Runs commands that are specific to MultiModel-based classes.
|
static java.lang.String |
handleSubmodelPrintCommand(MultiModel Model,
java.util.List<java.lang.String> Command)
Handles printing commands specific to MultiModels.
|
public static java.lang.String handleSubmodelPrintCommand(MultiModel Model, java.util.List<java.lang.String> Command) throws java.lang.Exception
submodel - Print out number of submodels
submodel <number> [<command...>] - Pass a print command to one of the submodels
Model
- Model to operate onCommand
- Command to parse (should start with "submodel")java.lang.Exception
- If something goes wrongpublic static java.lang.Object handleSubmodelCommand(BaseModel Model, java.util.List<java.lang.Object> Command) throws java.lang.Exception
Currently provides the following operations (make sure to copy this into class description):
Implemented Commands:
submodel - Print the number of submodels submodel set generic $<model> - Define a model template to use for all submodels
submodel set <number> $<model> - Set a specific submodel
submodel get generic = <output> - Retrieve the template for any unassigned submodels submodel get <number> = <output> - Retrieve a specific submodel
Model
- Model to be operated onCommand
- Command to be run (should not start with "submodel")java.lang.Exception