Commit 8a9bf66b authored by Alexander Diewald's avatar Alexander Diewald
Browse files

SIL-Annotation: Simplify value provider.

Issue-Ref: 3859
Issue-Url: https://af3-developer.fortiss.org/issues/3859

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent b4fcc597
HwComplexityValueProvider.java 23583ed930bbd942485e317ecf485323c7152a4f GREEN
SafetyIntegrityLevelValueProvider.java d4c0e644e3186f9fee86f2946fae14e02110f0b0 RED
SafetyIntegrityLevelValueProvider.java 1d61a51eced9f7602a4b0d7aca0824c1963857e6 RED
......@@ -18,7 +18,6 @@ package org.fortiss.af3.safety.annotation.valueprovider;
import static org.fortiss.af3.safety.utils.SafetyUtils.haveDirectChildsSpecifiedSIL;
import static org.fortiss.af3.safety.utils.SafetyUtils.isElementTopElement;
import org.eclipse.emf.common.util.Enumerator;
import org.fortiss.af3.platform.hierarchic.model.node.INodeDomain;
import org.fortiss.af3.platform.hierarchic.model.processor.IProcessorDomain;
import org.fortiss.af3.platform.hierarchic.model.tile.ITileDomain;
......@@ -69,18 +68,4 @@ public class SafetyIntegrityLevelValueProvider
public String getAnnotationName(SafetyIntegrityLevel specification) {
return "Safety Level";
}
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override
public <U> U getAnnotationValue(SafetyIntegrityLevel specification) {
return super.getAnnotationValue(specification);
}
/** {@inheritDoc} */
@Override
public <U> void setAnnotationValue(U value, SafetyIntegrityLevel specification)
throws Exception {
super.setAnnotationValue((Enumerator)value, specification);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment