-
Notifications
You must be signed in to change notification settings - Fork 0
/
Waldos_Template.xml
executable file
·9 lines (9 loc) · 1.09 KB
/
Waldos_Template.xml
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="Waldos">
<template name="modulo" value="from Waldos.PyWaldo.modulos import Modulo from Waldos.PyWaldo.parametros import Params from Waldos.InWaldo import wdados class Params$NOME_MODULO$(Params): # Lista de nomes parâmetros que este módulo utiliza. __slots__ = [] # Definir o valor padrão para cada parâmetro. # Exemplo: # um_parametro = 10 class $NOME_MODULO$(Modulo): # Classe do tipo de dado produzido por este módulo. dados = wdados.UmTipoDeDado def calcular(self, waldo): # Aqui deve-se chamar métodos para realizar o cálculo e # retornar o resultado. return None " description="Um modulo para o waldo" toReformat="false" toShortenFQNames="true">
<variable name="NOME_MODULO" expression="fileNameWithoutExtension()" defaultValue="UmModulo" alwaysStopAt="false" />
<context>
<option name="Python" value="true" />
</context>
</template>
</templateSet>