Skip to content
Snippets Groups Projects
Commit d73399f5 authored by Johannes Eder's avatar Johannes Eder
Browse files

prototype provider for v2v elements

parent 868828a9
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,20 @@ import org.fortiss.af3.platform.raspberry.model.rumblepad.R2_Position;
import org.fortiss.af3.platform.raspberry.model.rumblepad.RumbleMagnitudeStrong;
import org.fortiss.af3.platform.raspberry.model.rumblepad.RumbleMagnitudeWeak;
import org.fortiss.af3.platform.raspberry.model.rumblepad.SimpleRumbleFeature;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFollowerInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFollowerOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFusePlatoonInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFusePlatoonOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeaderHeartbeatInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeaderHeartbeatOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeavePlatoonInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeavePlatoonOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VNewLeaderInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VNewLeaderOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VPlatoonInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VPlatoonOutput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VSplitInput;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VSplitOutput;
import org.fortiss.af3.platform.raspberry.util.RaspberryModelElementFactory;
import org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase;
import org.fortiss.tooling.kernel.extension.data.PrototypeCategory;
......@@ -155,6 +169,8 @@ public class ProtoypeProvider extends PrototypeProviderBase {
protected final static String CAMERA_SERVER = "Camera Server";
/** Category for control center elements. */
protected final static String CONTROL_CENTER = "Control Center";
/** Category for control center elements. */
protected final static String V2V_COM = "V2V Communication";
/** {@inheritDoc} */
@Override
......@@ -195,6 +211,82 @@ public class ProtoypeProvider extends PrototypeProviderBase {
registerCameraElements();
registerGamepadElements();
registerControlCenterElements();
registerV2VComElements();
}
/**
*
*/
private void registerV2VComElements() {
V2VPlatoonInput input = RaspberryModelElementFactory.createV2vPlatoonInput();
setNodePosition(input, 0, 0);
setConnectorPosition(input, 0, 0);
registerPrototype("V2V Platoon Input", input, V2V_COM);
V2VPlatoonOutput output = RaspberryModelElementFactory.createV2vPlatoonOutput();
setNodePosition(output, 0, 0);
setConnectorPosition(output, 0, 0);
registerPrototype("V2V Platoon Output", output, V2V_COM);
V2VLeaderHeartbeatInput input1 = RaspberryModelElementFactory.createV2vLeaderHeartbeatInput()
setNodePosition(input1, 0, 0);
setConnectorPosition(input1, 0, 0);
registerPrototype("V2V Leader Heartbeat Input", input1, V2V_COM);
V2VLeaderHeartbeatOutput output1 = RaspberryModelElementFactory.createV2vLeaderHeartbeatOutput();
setNodePosition(output1, 0, 0);
setConnectorPosition(output1, 0, 0);
registerPrototype("V2V Leader Heartbeat Output", output1, V2V_COM);
V2VFollowerInput input2 = RaspberryModelElementFactory.createV2vFollowerInput();
setNodePosition(input2, 0, 0);
setConnectorPosition(input2, 0, 0);
registerPrototype("V2V Follower Input", input2, V2V_COM);
V2VFollowerOutput output2 = RaspberryModelElementFactory.createV2vFollowerOutput();
setNodePosition(output2, 0, 0);
setConnectorPosition(output2, 0, 0);
registerPrototype("V2V Follower Output", output2, V2V_COM);
V2VLeavePlatoonInput input3 = RaspberryModelElementFactory.createV2vLeavePlatoonInput();
setNodePosition(input3, 0, 0);
setConnectorPosition(input3, 0, 0);
registerPrototype("V2V Leave Platoon Input", input3, V2V_COM);
V2VLeavePlatoonOutput output3 = RaspberryModelElementFactory.createV2vLeavePlatoonOutput();
setNodePosition(output3, 0, 0);
setConnectorPosition(output3, 0, 0);
registerPrototype("V2V Leave Platoon Output", output3, V2V_COM);
V2VSplitInput input4 = RaspberryModelElementFactory.createV2vSplitInput();
setNodePosition(input4, 0, 0);
setConnectorPosition(input4, 0, 0);
registerPrototype("V2V Split Input", input4, V2V_COM);
V2VSplitOutput output4 = RaspberryModelElementFactory.createV2vSplitOutput();
setNodePosition(output4, 0, 0);
setConnectorPosition(output4, 0, 0);
registerPrototype("V2V Split Output", output4, V2V_COM);
V2VNewLeaderInput input5 = RaspberryModelElementFactory.createV2vNewLeaderInput();
setNodePosition(input5, 0, 0);
setConnectorPosition(input5, 0, 0);
registerPrototype("V2V New Leader Input", input5, V2V_COM);
V2VNewLeaderOutput output5 = RaspberryModelElementFactory.createV2vNewLeaderOutput();
setNodePosition(output5, 0, 0);
setConnectorPosition(output5, 0, 0);
registerPrototype("V2V New Leader Output", output5, V2V_COM);
V2VFusePlatoonInput input6 = RaspberryModelElementFactory.createV2vFusePlatoonInput();
setNodePosition(input6, 0, 0);
setConnectorPosition(input6, 0, 0);
registerPrototype("V2V Fuse Platoon Input", input6, V2V_COM);
V2VFusePlatoonOutput output6 = RaspberryModelElementFactory.createV2vFusePlatoonOutput();
setNodePosition(output6, 0, 0);
setConnectorPosition(output6, 0, 0);
registerPrototype("V2V Fuse Platoon Output", output6, V2V_COM);
}
/** Register elements for control center. */
......
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