blob: 512f007bb62a28d04eb78bb03b2b7ae864d21add [file] [log] [blame]
/*********************************************************************
* 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 InterfaceLogicalTypeHex extends InterfaceLogicalTypeGeneric {
public static String name = "hex";
public InterfaceLogicalTypeHex() {
super(6L, 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));
this.setFields(fields);
}
}