diff options
Diffstat (limited to 'org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/elements/nonmapping/NonMappingFloat64Element.java')
-rw-r--r-- | org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/elements/nonmapping/NonMappingFloat64Element.java | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/elements/nonmapping/NonMappingFloat64Element.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/elements/nonmapping/NonMappingFloat64Element.java new file mode 100644 index 000000000..4b9d83d3f --- /dev/null +++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/message/elements/nonmapping/NonMappingFloat64Element.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.ote.message.elements.nonmapping; + +import org.eclipse.osee.ote.message.Message; +import org.eclipse.osee.ote.message.data.MessageData; +import org.eclipse.osee.ote.message.elements.Float64Element; +import org.eclipse.osee.ote.message.interfaces.ITestAccessor; + +/** + * @author Andy Jury + */ +public class NonMappingFloat64Element extends Float64Element { + + /** + * Copy constructor. + */ + public NonMappingFloat64Element(Float64Element element) { + super(element.getMessage(), element.getElementName(), element.getMsgData(), element.getByteOffset(), + element.getMsb(), element.getLsb()); + for (Object obj : element.getElementPath()) { + this.getElementPath().add(obj); + } + } + + public NonMappingFloat64Element(Message message, String elementName, MessageData messageData, int byteOffset, int msb, int lsb) { + super(message, elementName, messageData, byteOffset, msb, lsb); + } + + public NonMappingFloat64Element(Message message, String elementName, MessageData messageData, int byteOffset, int msb, int lsb, int originalLsb, int originalMsb) { + super(message, elementName, messageData, byteOffset, msb, lsb, originalLsb, originalMsb); + } + + public NonMappingFloat64Element(Message message, String elementName, MessageData messageData, int bitOffset, int bitLength) { + super(message, elementName, messageData, bitOffset, bitLength); + } + + @Override + public void checkForwarding(ITestAccessor accessor, Float64Element cause, double value) throws InterruptedException { + throwNoMappingElementException(); + + } + + @Override + public boolean isNonMappingElement() { + return true; + } + +} |