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.SystemModel convert​(org.opentcs.access.to.model.PlantModelCreationTO model)
    Converts the given plant model data to a SystemModel instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • convert

      @Nonnull public org.opentcs.guing.model.SystemModel convert​(org.opentcs.access.to.model.PlantModelCreationTO model) throws java.lang.IllegalArgumentException
      Converts the given plant model data to a SystemModel instance.
      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.