Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
raspberry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
af3
raspberry
Commits
d73399f5
Commit
d73399f5
authored
6 years ago
by
Johannes Eder
Browse files
Options
Downloads
Patches
Plain Diff
prototype provider for v2v elements
parent
868828a9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java
+92
-0
92 additions, 0 deletions
...af3/platform/raspberry/ui/prototype/ProtoypeProvider.java
with
92 additions
and
0 deletions
org.fortiss.af3.platform.raspberry.ui/src/org/fortiss/af3/platform/raspberry/ui/prototype/ProtoypeProvider.java
+
92
−
0
View file @
d73399f5
...
@@ -135,6 +135,20 @@ import org.fortiss.af3.platform.raspberry.model.rumblepad.R2_Position;
...
@@ -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.RumbleMagnitudeStrong
;
import
org.fortiss.af3.platform.raspberry.model.rumblepad.RumbleMagnitudeWeak
;
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.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.af3.platform.raspberry.util.RaspberryModelElementFactory
;
import
org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase
;
import
org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase
;
import
org.fortiss.tooling.kernel.extension.data.PrototypeCategory
;
import
org.fortiss.tooling.kernel.extension.data.PrototypeCategory
;
...
@@ -155,6 +169,8 @@ public class ProtoypeProvider extends PrototypeProviderBase {
...
@@ -155,6 +169,8 @@ public class ProtoypeProvider extends PrototypeProviderBase {
protected
final
static
String
CAMERA_SERVER
=
"Camera Server"
;
protected
final
static
String
CAMERA_SERVER
=
"Camera Server"
;
/** Category for control center elements. */
/** Category for control center elements. */
protected
final
static
String
CONTROL_CENTER
=
"Control Center"
;
protected
final
static
String
CONTROL_CENTER
=
"Control Center"
;
/** Category for control center elements. */
protected
final
static
String
V2V_COM
=
"V2V Communication"
;
/** {@inheritDoc} */
/** {@inheritDoc} */
@Override
@Override
...
@@ -195,6 +211,82 @@ public class ProtoypeProvider extends PrototypeProviderBase {
...
@@ -195,6 +211,82 @@ public class ProtoypeProvider extends PrototypeProviderBase {
registerCameraElements
();
registerCameraElements
();
registerGamepadElements
();
registerGamepadElements
();
registerControlCenterElements
();
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. */
/** Register elements for control center. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment