Interface IUnityLogicTemplateFunctions
public interface IUnityLogicTemplateFunctions
Interface containing the methods that can be used in the user logic templates for the UnityLogicGenerator.
- Author:
- Ivan Prieto Barreiro
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteProgram(String theProgram) Used to write a part of the user logic application.voidwriteVariable(String theVariable) Used to write a variable in the dedicated buffer.
-
Method Details
-
writeProgram
Used to write a part of the user logic application.Example:
# Write a part of the program self.thePlugin.writeProgram('''(* Adding a comment to the generated application *)''')- Parameters:
theProgram- The program to be written.
-
writeVariable
Used to write a variable in the dedicated buffer.Example:
# Write Variables self.thePlugin.writeVariable('''<variables name="$Name$_BL_TRIG" typeName="F_TRIG"></variables> <variables name="$Name$_DL_IOErr" typeName="BOOL"></variables> <variables name="$Name$_DL_IOSim" typeName="BOOL"></variables>''')- Parameters:
theVariable- The variable to be written.
-