| /********************************************************************* |
| * Copyright (c) 2021 Boeing |
| * |
| * 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: |
| * Boeing - initial API and implementation |
| **********************************************************************/ |
| |
| package org.eclipse.osee.mim.types; |
| |
| import java.util.ArrayList; |
| import org.eclipse.osee.framework.core.enums.CoreAttributeTypes; |
| |
| /** |
| * @author Audrey E Denk |
| */ |
| public class InterfaceLogicalTypeFloat extends InterfaceLogicalTypeGeneric { |
| public static String name = "float"; |
| |
| public InterfaceLogicalTypeFloat() { |
| super(5L, name); |
| ArrayList<InterfaceLogicalTypeField> fields = new ArrayList<InterfaceLogicalTypeField>(); |
| fields.add(new InterfaceLogicalTypeField("Name", "Name", true, true,"Name")); |
| fields.add(new InterfaceLogicalTypeField("Bit Size", "InterfacePlatformTypeBitSize", |
| true, true)); |
| fields.add(new InterfaceLogicalTypeField("2s Complement", |
| "InterfacePlatformType2sComplement", true, false,"true")); |
| fields.add(new InterfaceLogicalTypeField("Description", "Description", false, true)); |
| fields.add( |
| new InterfaceLogicalTypeField("Minval", "InterfacePlatformTypeMinval", true, true)); |
| fields.add( |
| new InterfaceLogicalTypeField("Maxval", "InterfacePlatformTypeMaxval", true, true)); |
| fields.add( |
| new InterfaceLogicalTypeField("Units", "InterfacePlatformTypeUnits", false, true)); |
| fields.add(new InterfaceLogicalTypeField("Default Value", |
| "InterfacePlatformTypeDefaultValue", false, true)); |
| this.setFields(fields); |
| } |
| |
| } |