| /** |
| ******************************************************************************** |
| * Copyright (c) 2021 Robert Bosch GmbH and others. |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Robert Bosch GmbH - initial API and implementation |
| ******************************************************************************** |
| */ |
| |
| package org.eclipse.app4mc.amalthea.validations.sim; |
| |
| import org.eclipse.app4mc.amalthea.validations.sim.mapping.SimMappingSchedulerAllocation; |
| import org.eclipse.app4mc.amalthea.validations.sim.mapping.SimMappingTaskPriorityIsSet; |
| import org.eclipse.app4mc.amalthea.validations.sim.mapping.SimSchedulingParametersNegativePriority; |
| import org.eclipse.app4mc.amalthea.validations.standard.mapping.AmMappingIsrScheduler; |
| import org.eclipse.app4mc.amalthea.validations.standard.mapping.AmMappingTaskScheduler; |
| import org.eclipse.app4mc.validation.annotation.Profile; |
| import org.eclipse.app4mc.validation.annotation.ValidationGroup; |
| import org.eclipse.app4mc.validation.core.IProfile; |
| import org.eclipse.app4mc.validation.core.Severity; |
| |
| @Profile(name = "Mapping Validations (APP4MC.sim)") |
| |
| @ValidationGroup( |
| severity = Severity.ERROR, |
| validations = { |
| AmMappingTaskScheduler.class, // standard: warning |
| AmMappingIsrScheduler.class, // standard: warning |
| SimMappingSchedulerAllocation.class, |
| SimSchedulingParametersNegativePriority.class |
| } |
| ) |
| |
| |
| @ValidationGroup( |
| severity = Severity.WARNING, |
| validations = { |
| SimMappingTaskPriorityIsSet.class |
| } |
| ) |
| |
| public class SimMappingProfile implements IProfile { |
| // Do nothing |
| } |