blob: 8eb75402603d8b73ebee8aeb138a11e9d9f676f5 [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;
/**
* @author Audrey E Denk
*/
public class InterfaceLogicalTypeBoolean extends InterfaceLogicalTypeGeneric {
public static String name = "boolean";
public InterfaceLogicalTypeBoolean() {
super(1L, 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, "8"));
fields.add(
new InterfaceLogicalTypeField("2s Complement", "InterfacePlatformType2sComplement", true, false, "true"));
fields.add(new InterfaceLogicalTypeField("Description", "Description", false, true));
fields.add(new InterfaceLogicalTypeField("Minval", "InterfacePlatformTypeMinval", false, true));
fields.add(new InterfaceLogicalTypeField("Maxval", "InterfacePlatformTypeMaxval", false, true));
fields.add(new InterfaceLogicalTypeField("Enum Literal", "InterfacePlatformTypeEnumLiteral", false, true));
fields.add(new InterfaceLogicalTypeField("Default Value", "InterfacePlatformTypeDefaultValue", false, true));
this.setFields(fields);
}
}