@Override
public String toCode() throws SocketNullException, SubroutineNotDeclaredException
{
String ret, pin, varName, actuatorParaDef;
TranslatorBlock childBlock;
childBlock = getRequiredTranslatorBlockAtSocket(0);
if (childBlock != null)
{
pin = childBlock.toCode();
}
else
{
pin = "?";
}
varName = "aPara" + pin;
varName = translator.buildVariableName(varName);
actuatorParaDef = "byte " + varName + "[]={";
childBlock = getTranslatorBlockAtSocket(1);
if (childBlock != null)
{
actuatorParaDef += "PARATYPE_RUNMETHOD(" + childBlock.toCode() + "),";
}
childBlock = getTranslatorBlockAtSocket(2);
if (childBlock != null)
{
actuatorParaDef += "PARATYPE_PERIOD(" + childBlock.toCode() + ")";
}
actuatorParaDef += "};";