public interface IGenerationPluginTemplate
| Modifier and Type | Method and Description | 
|---|---|
| String | formatNumberPLC(String excelParameter)Method used to get the correct number format for the PLC. | 
| String | getApplicationName()Get the application name from the UnicosApplication. | 
| String | getLinkedExpertName(String theName)Function. | 
| String | getPlcManufacturer()Get the PLC manufacturer from the PLC declarations | 
| String | getPlcName()Get the PLC name as defined in the UnicosApplication.xml | 
| ISpecFileTemplate | getUnicosProject()Provide access to the root of the input XML data (specs file instance) | 
| boolean | isString(String parameter)Method used from the templates to know if the specified parameter is a String or a Float | 
| void | writeFile(String fileName,
         String content)Write a file in the plug-in output folder. | 
| void | writeXmlFile(String fileName,
            String content)Write an XML file in the plug-in output folder. | 
String getApplicationName()
String formatNumberPLC(String excelParameter)
excelParameter - Value coming from the specsboolean isString(String parameter)
parameter - The parameter to be checkedISpecFileTemplate getUnicosProject() throws research.ch.cern.unicos.plugins.interfaces.GenerationException
GenerationException - if the specs file instance is null.String getLinkedExpertName(String theName) throws research.ch.cern.unicos.plugins.interfaces.GenerationException
theName - Name of the device instance to look for.GenerationException - If the specs file is not defined.String getPlcManufacturer()
String getPlcName() throws research.ch.cern.unicos.plugins.interfaces.GenerationException
GenerationExceptionvoid writeFile(String fileName, String content)
fileName - The output file name.content - The output file content.Copyright © 2010–2020 CERN. All rights reserved.