# Interface for nomoInterpreter created with nomoSDK

import nomointerpreter
from nomointerpreter import nomoCallback

# Size of inputs and commands
COMMAND_LABEL_MHELLOWORLD_SIZE = 1

# Components of inputs and components of commands
# command_label_mHelloWorld
[COMMAND_LABEL_MHELLOWORLD_VALUE] = range (0, 1)

# Command functions
def commandLabelMHelloWorld(intensity, data):
#    print ("commandLabelMHelloWorld ->"))
#    print ("intensity : " + str(intensity))
#    for i in range (COMMAND_LABEL_MHELLOWORLD_SIZE) :
#        print ("data[" + str(i) + "] : " + str(data[i]) )
    if data[COMMAND_LABEL_MHELLOWORLD_VALUE] == 1.0 :
        print ("Hello World !")

actions = [
nomoCallback(commandLabelMHelloWorld)
]

# ID of log types
[COMMAND_LABEL_MHELLOWORLD_LOG # program: pHelloWorld model: mHelloWorld
] = range (0, 1)

TYPES_LOG_NUMBER = 1