Package net.ssehub.easy.standalone.cmd
Class Utils
java.lang.Object
net.ssehub.easy.standalone.cmd.Utils
Command line utility functions.
- Author:
- El-Sharkawy, Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <M extends net.ssehub.easy.basics.modelManagement.IModel>
MloadPreferredModel(net.ssehub.easy.basics.modelManagement.ModelManagement<M> modelMgmt, net.ssehub.easy.basics.modelManagement.IModelData modelDefinition, File... locations) Loads a model with the specified (model name, version) pair from the givenModelManagementinstance.
-
Field Details
-
BUNDLE_ID
The pseudo bundle identification for logging.- See Also:
-
-
Constructor Details
-
Utils
private Utils()Prevents external creation.
-
-
Method Details
-
loadPreferredModel
static <M extends net.ssehub.easy.basics.modelManagement.IModel> M loadPreferredModel(net.ssehub.easy.basics.modelManagement.ModelManagement<M> modelMgmt, net.ssehub.easy.basics.modelManagement.IModelData modelDefinition, File... locations) throws net.ssehub.easy.basics.modelManagement.ModelManagementException Loads a model with the specified (model name, version) pair from the givenModelManagementinstance. The model will only be loaded, if it can be loaded from the givenlocations(ordering of parameters will be considered).- Type Parameters:
M- The specific model type, will be derived from theModelManagementinstance. Will beProjectorScript.- Parameters:
modelMgmt- TheModelManagementinstance from where theIModelshould be loaded from, i.e.VarModel.INSTANCEorBuildModel.INSTANCE.modelDefinition- A (model name, version) pair for specifying whichIModelshould be loaded.locations- A ordered list of locations from where theIModelshould be loaded from.- Returns:
- A loaded
IModelornull. - Throws:
net.ssehub.easy.basics.modelManagement.ModelManagementException- In case that the available information may become inconsistent due to this update
-