Class PersistentProject2PLPConverter
- java.lang.Object
-
- net.ssehub.easy.producer.core.persistence.standard.PersistentProject2PLPConverter
-
- All Implemented Interfaces:
PersistenceConstants
public class PersistentProject2PLPConverter extends java.lang.Object implements PersistenceConstants
Stores the information of aPersistentProjectin aPLPInfoto simplify the load process.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private IPersistencerpersistencerprivate PersistentProjectproject-
Fields inherited from interface net.ssehub.easy.producer.core.persistence.standard.PersistenceConstants
CONFIG_FILE, EASY_FILES_DEFAULT, INSTANTIATOR_ENGINE, INSTANTIATOR_FILE, INSTANTIATOR_INHERITED, INSTANTIATOR_PATH_REGEX, INSTANTIATOR_PATHS, INSTANTIATOR_UUID, PLP_LOCATION, PLP_VERSION, PRESUCCESSOR_LOCATION, PRESUCCESSOR_MEMEBERNAME, PRESUCCESSOR_UUID, PRESUCCESSOR_VERSION, PTN_PROJECTNAME, PTN_UUID, REASONER_ATTRIBUTE, REASONER_TIMEOUT, REASONER_VALUE_SEPARATOR, REASONER_VALUES, SETTINGS_DEBUG
-
-
Constructor Summary
Constructors Constructor Description PersistentProject2PLPConverter(IPersistencer persistencer, PersistentProject project)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcreateReasonerConfiguration(PLPInfo plp, Model model)Creates ReasoningConfiguration.private java.util.List<PLPInfo>model2Relatives(Model model)Creates information related to relative projects..PLPInfopersistentProject2PLP()Translates thePersistentProjectinto aPLPInfo.
-
-
-
Field Detail
-
persistencer
private IPersistencer persistencer
-
project
private PersistentProject project
-
-
Constructor Detail
-
PersistentProject2PLPConverter
public PersistentProject2PLPConverter(IPersistencer persistencer, PersistentProject project)
Sole constructor for this class.- Parameters:
persistencer- The persistencer which is currently loading thePLPInfo.project- ThePersistentProjectwhich should be translated.
-
-
Method Detail
-
persistentProject2PLP
public PLPInfo persistentProject2PLP() throws PersistenceException
Translates thePersistentProjectinto aPLPInfo.- Returns:
- A
PLPInforepresenting the givenPersistentProject. - Throws:
PersistenceException- Will be thrown if thePersistentProjectcontains invalid data.
-
createReasonerConfiguration
private void createReasonerConfiguration(PLPInfo plp, Model model)
Creates ReasoningConfiguration.- Parameters:
model- A model of typeModelType.INSTANTIATORSholding all instantiator information.plp- TheProductLineProjectwhere the instantiators should be saved
-
model2Relatives
private java.util.List<PLPInfo> model2Relatives(Model model)
Creates information related to relative projects..- Parameters:
model- A model of typeModelType.PREDECESSORSorModelType.SUCCESSORSholding all Prede-/Successor information.- Returns:
- The Predecessors/Successor-List
-
-