Skip to content
Snippets Groups Projects
Commit 7c04e00a authored by Zabir Haider Khan's avatar Zabir Haider Khan
Browse files

Generic Calls for reading Sensor and writing to Actuator based on Pin Numbers.

parent 24cf7be1
No related branches found
No related tags found
No related merge requests found
......@@ -65,8 +65,7 @@ public class ActuatorOutExecutable extends TransmitterExecutableBase<ActuatorOut
public IExpressionTerm getValueWriteAccessor(OutputPort logicalSignal, IExpressionTerm value) {
PinNumber ias = getAnnotation(modelElement, PinNumber.class);
int pinNr = ias.getPinNumber();
return funcCall("write_" + modelElement.getName(),
ExpressionModelElementFactory.createVar(pinNr + ""));
return funcCall("write_Actuator", ExpressionModelElementFactory.createVar(pinNr + ""));
}
......
......@@ -71,7 +71,7 @@ public class SensorInExecutable extends ReceiverExecutableBase<SensorIn> impleme
PinNumber ias = getAnnotation(modelElement, PinNumber.class);
int pinNr = ias.getPinNumber();
return funcCall("read_" + modelElement.getName(),
return funcCall("read_Sensor",// + modelElement.getName()
ExpressionModelElementFactory.createVar(pinNr + ""));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment