Package org.opentcs.guing.persistence
Class ModelImportAdapter
java.lang.Object
org.opentcs.guing.persistence.ModelImportAdapter
public class ModelImportAdapter
extends java.lang.Object
Converts plant model data to
SystemModel instances.-
Constructor Summary
Constructors Constructor Description ModelImportAdapter(javax.inject.Provider<org.opentcs.guing.model.SystemModel> systemModelProvider, PlantModelElementConverter elementConverter, ModelValidator validator, org.opentcs.guing.application.StatusPanel statusPanel) -
Method Summary
Modifier and Type Method Description org.opentcs.guing.model.SystemModelconvert(org.opentcs.access.to.model.PlantModelCreationTO model)Converts the given plant model data to aSystemModelinstance.
-
Constructor Details
-
ModelImportAdapter
@Inject public ModelImportAdapter(javax.inject.Provider<org.opentcs.guing.model.SystemModel> systemModelProvider, PlantModelElementConverter elementConverter, ModelValidator validator, org.opentcs.guing.application.StatusPanel statusPanel)
-
-
Method Details
-
convert
@Nonnull public org.opentcs.guing.model.SystemModel convert(org.opentcs.access.to.model.PlantModelCreationTO model) throws java.lang.IllegalArgumentExceptionConverts the given plant model data to aSystemModelinstance.- Parameters:
model- The plant model data to be converted.- Returns:
- The converted model.
- Throws:
java.lang.IllegalArgumentException- If the given plant model data was inconsistent in some way.
-