diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/compositor/RaspberryPlatformHierarchicalCompositionRules.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/compositor/RaspberryPlatformHierarchicalCompositionRules.java new file mode 100644 index 0000000000000000000000000000000000000000..b6ecf4a08ba612d0cee32d6a94af5a1e8e1c7136 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/compositor/RaspberryPlatformHierarchicalCompositionRules.java @@ -0,0 +1,60 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.compositor; + +import org.eclipse.emf.common.util.BasicEList; +import org.eclipse.emf.common.util.EList; +import org.fortiss.af3.platform.compose.IPlatformHierarchicalCompositionRules; +import org.fortiss.af3.platform.compose.PlatformHierarchicalCompositionRulesBase; +import org.fortiss.af3.platform.model.IArchitectureDomain; +import org.fortiss.af3.platform.model.IPlatformDomain; +import org.fortiss.af3.platform.raspberry.model.IBoardDomain; +import org.fortiss.af3.platform.raspberry.model.IProcessorDomain; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class RaspberryPlatformHierarchicalCompositionRules extends + PlatformHierarchicalCompositionRulesBase { + + /** Singleton pattern. */ + public static IPlatformHierarchicalCompositionRules INSTANCE = + new RaspberryPlatformHierarchicalCompositionRules(); + + /** {@inheritDoc} */ + @Override + public EList<Class<? extends IArchitectureDomain>> getAdmissibleChildDomains( + Class<? extends IArchitectureDomain> domain) { + EList<Class<? extends IArchitectureDomain>> rval = + new BasicEList<Class<? extends IArchitectureDomain>>(); + + if(domain.equals(IPlatformDomain.class)) { + rval.add(IBoardDomain.class); + } else if(hasEqualLevel(domain, IPlatformDomain.class)) { + rval.add(IPlatformDomain.class); + } else if(hasEqualLevel(domain, IBoardDomain.class)) { + rval.add(IProcessorDomain.class); + } + return rval; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..86405b3742c8dd31ee483e0f791487f8031a0d34 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorExecutable.java @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.OutputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.IWritableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.TransmitterExecutableBase; +import org.fortiss.af3.platform.raspberry.model.Actuator; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class ActuatorExecutable extends TransmitterExecutableBase<Actuator> implements + IInitializableExecutable, ITerminatableExecutable, IWritableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public ActuatorExecutable(Actuator modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueWriteAccessor(OutputPort logicalSignal, IExpressionTerm value) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValWriteAccessor(OutputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorOutExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorOutExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..83d6cb1d3fcbf3ff8c5ef862fce293cbf4c0a4a2 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/ActuatorOutExecutable.java @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.OutputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.IWritableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.TransmitterExecutableBase; +import org.fortiss.af3.platform.raspberry.model.ActuatorOut; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class ActuatorOutExecutable extends TransmitterExecutableBase<ActuatorOut> implements + IInitializableExecutable, ITerminatableExecutable, IWritableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public ActuatorOutExecutable(ActuatorOut modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueWriteAccessor(OutputPort logicalSignal, IExpressionTerm value) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValWriteAccessor(OutputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..1f555bbc01f08012e116589d1952836acf9c4007 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusExecutable.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import java.util.List; +import java.util.Map; + +import org.fortiss.af3.component.model.Component; +import org.fortiss.af3.component.model.Port; +import org.fortiss.af3.generator.common.model.source.SourcePackage; +import org.fortiss.af3.platform.language.executable.TransmissionUnitExecutableBase; +import org.fortiss.af3.platform.model.ExecutionUnit; +import org.fortiss.af3.platform.model.TransmissionUnit; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class BusExecutable extends TransmissionUnitExecutableBase<TransmissionUnit> { + + /** + * @param modelElement + */ + public BusExecutable(TransmissionUnit modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public void createAllFiles(SourcePackage pack, Map<ExecutionUnit, List<Port>> euPortsPair, + Map<ExecutionUnit, List<Component>> euComponentList, Component topComponent, + int deploymentID) { + // TODO Auto-generated method stub + + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterInterfaceExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterInterfaceExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..c48cf6c77136ae198a78225591a7f551b67a336b --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterInterfaceExecutable.java @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.InputPort; +import org.fortiss.af3.component.model.OutputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.IReadableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.IWritableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.TransceiverExecutableBase; +import org.fortiss.af3.platform.raspberry.model.BusMasterInterface; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class BusMasterInterfaceExecutable extends TransceiverExecutableBase<BusMasterInterface> + implements IInitializableExecutable, ITerminatableExecutable, + IReadableExecutableWithNoValSupport, IWritableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public BusMasterInterfaceExecutable(BusMasterInterface modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueReadAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueWriteAccessor(OutputPort logicalSignal, IExpressionTerm value) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValWriteAccessor(OutputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValGuardAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterPortExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterPortExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..c19fd395b95fa8b2d77d69082e4f1090ae9a69d1 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/BusMasterPortExecutable.java @@ -0,0 +1,91 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.InputPort; +import org.fortiss.af3.component.model.OutputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.IReadableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.IWritableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.TransceiverExecutableBase; +import org.fortiss.af3.platform.raspberry.model.BusMasterPort; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class BusMasterPortExecutable extends TransceiverExecutableBase<BusMasterPort> implements + IInitializableExecutable, ITerminatableExecutable, IReadableExecutableWithNoValSupport, + IWritableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public BusMasterPortExecutable(BusMasterPort modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueReadAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueWriteAccessor(OutputPort logicalSignal, IExpressionTerm value) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValWriteAccessor(OutputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValGuardAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CANBusExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CANBusExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..9b5a4a573cd562a876aad1342963c5fbbcbf5d5c --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CANBusExecutable.java @@ -0,0 +1,56 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import java.util.List; +import java.util.Map; + +import org.fortiss.af3.component.model.Component; +import org.fortiss.af3.component.model.Port; +import org.fortiss.af3.generator.common.model.source.SourcePackage; +import org.fortiss.af3.platform.language.executable.TransmissionUnitExecutableBase; +import org.fortiss.af3.platform.model.ExecutionUnit; +import org.fortiss.af3.platform.model.TransmissionUnit; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class CANBusExecutable extends TransmissionUnitExecutableBase<TransmissionUnit> { + + /** + * @param modelElement + */ + public CANBusExecutable(TransmissionUnit modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public void createAllFiles(SourcePackage pack, Map<ExecutionUnit, List<Port>> euPortsPair, + Map<ExecutionUnit, List<Component>> euComponentList, Component topComponent, + int deploymentID) { + // TODO Auto-generated method stub + + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CoreExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CoreExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..9f4401f4024691f415142241ae506085df35bf91 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/CoreExecutable.java @@ -0,0 +1,73 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import java.util.List; + +import org.conqat.lib.commons.collections.Pair; +import org.fortiss.af3.component.model.Component; +import org.fortiss.af3.component.model.Port; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.generator.common.model.c.CSourcePackage; +import org.fortiss.af3.platform.language.executable.ExecutionUnitExecutableBase; +import org.fortiss.af3.platform.model.ExecutionUnit; +import org.fortiss.af3.platform.model.PlatformConnectorUnit; +import org.fortiss.af3.platform.raspberry.model.Core; +import org.fortiss.tooling.kernel.extension.data.ITransformationContext; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class CoreExecutable extends ExecutionUnitExecutableBase<Core, CSourcePackage> { + + /** + * @param modelElement + */ + public CoreExecutable(Core modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + protected CSourcePackage createExecutionUnitSourcePackage(String name, + List<Pair<ExecutionUnit, Component>> deployedComponents, + List<Pair<PlatformConnectorUnit, Port>> deployedPorts, ITransformationContext context) { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi1Executable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi1Executable.java new file mode 100644 index 0000000000000000000000000000000000000000..74718c695ee3a9566172d29c2906281e0fd939f8 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi1Executable.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.platform.language.executable.GenericPlatformUnitExecutableBase; +import org.fortiss.af3.platform.raspberry.model.RaspberryPi1; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class RaspberryPi1Executable extends GenericPlatformUnitExecutableBase<RaspberryPi1> { + + /** + * @param modelElement + */ + public RaspberryPi1Executable(RaspberryPi1 modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi2Executable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi2Executable.java new file mode 100644 index 0000000000000000000000000000000000000000..d533aaf9c8f46b2a9d0bf1ef1ffa91a50b4a004a --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi2Executable.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.platform.language.executable.GenericPlatformUnitExecutableBase; +import org.fortiss.af3.platform.raspberry.model.RaspberryPi2; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class RaspberryPi2Executable extends GenericPlatformUnitExecutableBase<RaspberryPi2> { + + /** + * @param modelElement + */ + public RaspberryPi2Executable(RaspberryPi2 modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi3Executable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi3Executable.java new file mode 100644 index 0000000000000000000000000000000000000000..a73b2105b149119110854bc3fc7a7ef2dcab291d --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/RaspberryPi3Executable.java @@ -0,0 +1,40 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.platform.language.executable.GenericPlatformUnitExecutableBase; +import org.fortiss.af3.platform.raspberry.model.RaspberryPi3; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class RaspberryPi3Executable extends GenericPlatformUnitExecutableBase<RaspberryPi3> { + + /** + * @param modelElement + */ + public RaspberryPi3Executable(RaspberryPi3 modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..3b1a834ff87df6967411d96c6a10a386c2019640 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorExecutable.java @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.InputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.IReadableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.ReceiverExecutableBase; +import org.fortiss.af3.platform.raspberry.model.Sensor; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class SensorExecutable extends ReceiverExecutableBase<Sensor> implements + IInitializableExecutable, ITerminatableExecutable, IReadableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public SensorExecutable(Sensor modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueReadAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValGuardAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorInExecutable.java b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorInExecutable.java new file mode 100644 index 0000000000000000000000000000000000000000..fa3912b04a883e8aec7e18103e9e5edcb4544207 --- /dev/null +++ b/org.fortiss.af3.platform.raspberry/trunk/src/org/fortiss/af3/platform/raspberry/generator/executable/SensorInExecutable.java @@ -0,0 +1,74 @@ +/*--------------------------------------------------------------------------+ +$Id$ +| | +| Copyright 2016 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.executable; + +import org.fortiss.af3.component.model.InputPort; +import org.fortiss.af3.expression.model.terms.IExpressionTerm; +import org.fortiss.af3.platform.language.executable.IInitializableExecutable; +import org.fortiss.af3.platform.language.executable.IReadableExecutableWithNoValSupport; +import org.fortiss.af3.platform.language.executable.ITerminatableExecutable; +import org.fortiss.af3.platform.language.executable.ReceiverExecutableBase; +import org.fortiss.af3.platform.raspberry.model.SensorIn; + +/** + * + * @author chaudhary + * @author $Author$ + * @version $Rev$ + * @ConQAT.Rating RED Hash: + */ +public class SensorInExecutable extends ReceiverExecutableBase<SensorIn> implements + IInitializableExecutable, ITerminatableExecutable, IReadableExecutableWithNoValSupport { + + /** + * @param modelElement + */ + public SensorInExecutable(SensorIn modelElement) { + super(modelElement); + // TODO Auto-generated constructor stub + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getValueReadAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getNoValGuardAccessor(InputPort logicalSignal) { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getTermination() { + // TODO Auto-generated method stub + return null; + } + + /** {@inheritDoc} */ + @Override + public IExpressionTerm getInitialization() { + // TODO Auto-generated method stub + return null; + } + +}