Skip to content
Snippets Groups Projects
Commit ba63481e authored by Stefan Duenhuber's avatar Stefan Duenhuber
Browse files

Add generator extension for code generation for outputports v2v

parent 1b34ba37
No related branches found
No related tags found
No related merge requests found
Showing
with 388 additions and 7 deletions
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFollowerOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VFollowerOutput}.
*/
public class V2VFollowerOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VFollowerOutput> {
/** Constructor. */
public V2VFollowerOutputGeneratorExtension(V2VFollowerOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_FOLLOWER";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VFusePlatoonOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VFusePlatoonOutput}.
*/
public class V2VFusePlatoonOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VFusePlatoonOutput> {
/** Constructor. */
public V2VFusePlatoonOutputGeneratorExtension(V2VFusePlatoonOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_FUSE_PLATOON";
}
}
......@@ -19,7 +19,7 @@ import org.eclipse.emf.ecore.EObject;
import org.fortiss.af3.platform.raspberry.generator.extension.library.PiHALLibraryGeneratorExtensionBase;
/**
* Base class for all executables of the controlcenter .
* Base class for all executables of the v2v communicaton .
*
* @author duenhuber
*/
......
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VHandshakeOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VHandshakeOutput}.
*/
public class V2VHandshakeOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VHandshakeOutput> {
/** Constructor. */
public V2VHandshakeOutputGeneratorExtension(V2VHandshakeOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_HANDSHAKE";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeaderHeartbeatOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VLeaderHeartbeatOutput}.
*/
public class V2VLeaderHeartbeatOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VLeaderHeartbeatOutput> {
/** Constructor. */
public V2VLeaderHeartbeatOutputGeneratorExtension(V2VLeaderHeartbeatOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_LEADER_HEARTBEAT";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeaderUIDOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VLeaderUIDOutput}.
*/
public class V2VLeaderUIDOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VLeaderUIDOutput> {
/** Constructor. */
public V2VLeaderUIDOutputGeneratorExtension(V2VLeaderUIDOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_LEADERUID";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLeavePlatoonOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VLeavePlatoonOutput}.
*/
public class V2VLeavePlatoonOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VLeavePlatoonOutput> {
/** Constructor. */
public V2VLeavePlatoonOutputGeneratorExtension(V2VLeavePlatoonOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_LEAVE_PLATOON";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VLocalUIDOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VLocalUIDOutput}.
*/
public class V2VLocalUIDOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VLocalUIDOutput> {
/** Constructor. */
public V2VLocalUIDOutputGeneratorExtension(V2VLocalUIDOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_LOCALUID";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VNewLeaderOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VNewLeaderOutput}.
*/
public class V2VNewLeaderOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VNewLeaderOutput> {
/** Constructor. */
public V2VNewLeaderOutputGeneratorExtension(V2VNewLeaderOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_NEW_LEADER";
}
}
......@@ -18,17 +18,16 @@ package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.eclipse.emf.ecore.EObject;
import org.fortiss.af3.component.model.OutputPort;
import org.fortiss.af3.platform.raspberry.generator.framework.IWriteableGeneratorExtension;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VPlatoonOutput;
/**
* @author duenhuber
*
* Executable for controlcenter {@link V2VPlatoonOutput}.
* Executable for v2v output .
*/
abstract class V2VOutputGeneratorExtension<T extends EObject> extends
V2VGeneratorExtensionBase<V2VPlatoonOutput> implements IWriteableGeneratorExtension {
abstract class V2VOutputGeneratorExtension<T extends EObject> extends V2VGeneratorExtensionBase<T>
implements IWriteableGeneratorExtension {
/** Constructor. */
public V2VOutputGeneratorExtension(V2VPlatoonOutput modelElement) {
public V2VOutputGeneratorExtension(T modelElement) {
super(modelElement);
}
......
......@@ -17,7 +17,10 @@ package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VPlatoonOutput;
/** Executable for controlcenter {@link V2VPlatoonOutput}. */
/**
* @author duenhuber
* Executable for v2v output {@link V2VPlatoonOutput}.
*/
public class V2VPlatoonOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VPlatoonOutput> {
/** Constructor. */
......
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VPrecedingUIDOuput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VPrecedingUIDOuput}.
*/
public class V2VPrecedingUIDOutputGeneratorExtension extends
V2VOutputGeneratorExtension<V2VPrecedingUIDOuput> {
/** Constructor. */
public V2VPrecedingUIDOutputGeneratorExtension(V2VPrecedingUIDOuput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_LEADERUID";
}
}
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.platform.raspberry.generator.extension.v2v;
import org.fortiss.af3.platform.raspberry.model.v2v.V2VSplitOutput;
/**
* @author duenhuber
* Executable for v2v output {@link V2VSplitOutput}.
*/
public class V2VSplitOutputGeneratorExtension extends V2VOutputGeneratorExtension<V2VSplitOutput> {
/** Constructor. */
public V2VSplitOutputGeneratorExtension(V2VSplitOutput modelElement) {
super(modelElement);
}
/** {@inheritDoc} */
@Override
protected String getV2VMessageType() {
// TODO Auto-generated method stub
return "V2V_MSG_TYPE_SPLIT";
}
}
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