Add type to variables

parent 04f74b0f
......@@ -35,6 +35,8 @@ import java.util.Optional;
* @author Sascha Schneiders
*/
public class Variable {
public static final String INCOMING = "Incoming";
public static final String OUTGOING = "outgoing";
public static String FORLOOPINFO = "ForLoopVariable";
public static String VARIABLE = "Variable";
public static String ORIGINPORT = "OriginPort";
......
......@@ -85,6 +85,7 @@ public class PortConverter {
variable.setName(name);
variable.setVariableType(TypeConverter.getVariableTypeForMontiCarTypeName(typeNameMontiCar, variable, portSymbol).get());
variable.addAdditionalInformation(Variable.ORIGINPORT);
variable.addAdditionalInformation(portSymbol.isIncoming() ? Variable.INCOMING : Variable.OUTGOING);
bluePrint.getMathInformationRegister().addVariable(variable);
if(portSymbol instanceof EMADynamicPortInstanceSymbol){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment