PAL CARD CATALOG ENTRY

SHORT DESCRIPTION

Define U.S.Army rank and grade types


MOVEMENT WITHIN THE PAL CARD CATALOG
Move to top-level taxonomy
Move to keyword list

ASSET PROFILE

UNIT NAME
Us_Army_Data_Types
VERSION
1
REVIEW CODE
C1 1.0 A
INET ADDRESS
sun1.disacim.osd.mil (134.152.9.140)
AUTHOR
U.S. Army Information System Engineering Command
Ft. Belvoir, VA 22060-5456
RIGHTS
Approved for Public Release; Distribution Unlimited
COPYRIGHT
None -- Public Domain.
DATE CREATED
November 13, 1989
DATE RELEASED
January 17, 1994
DATE LAST UPDATED
January 17, 1994
LOCATION
DSRS Library
PAL
ENVIRONMENT
DEC VAX/VMS with DEC Ada Compilation System (ACS)
LIMITATIONS
None.
CERTIFICATION
Ada System Certifier_1 1.0
Date/Time of Processing: Wednesday 25 May       1994 02:09:58Pm
Overall Assessment of System: OK
Classification of System: A
Basis of Classification --
Syntax Errors                               PASS
Completeness                                PASS
Independence from External Libraries        PASS
Independence from a Specific Ada Compiler   PASS

Number of ...
Files               1
Library Units       1
Lines              96
Statements         10
Comments           57

FILE LISTING

Directory Display


languages/ada/swcomps/dsrs/armydata:
  File Name                 Size
  ---------                 ----
  armydata.zip             7,758


Totals
  ==============  ==============
    1 Files                7,758

ABSTRACT

                               Us_Army_Data_Types
                                   01D001OP.1
                               (Old ID: RDA0009A)
PURPOSE/INTENDED USE:
Us_Army_Data_Types is an Ada package containing types and constants to
be used  in Army personnel systems where rank and grade are being
manipulated.  Us_Army_Data_Types does not require a package body.

EXAMPLE APPLICATIONS:
Reuse of this package would be appropriate as a common location for
Grade and  Rank tables.

CERTIFICATION LEVEL:
Us_Army_Data_Types is certified at Level 4.  This means that the Defense
Information Systems Agency/Center for Information Management Software
Reuse  Program (SRP) management office has successfully compiled the
code of this  Reusable Software Asset (RSA) and measured
maintainability, portability,  reliability and reusability.  In
addition, this RSA includes a test suite and a  Reuser's Manual, which
will be provided when the asset is extracted.  Note: The AdaMAT metrics
measurement score for reusability is unusually low  because of the low
proportion of variable declarations in the package body that include
initialization; the low proportion of read-only objects declared in 
library body units that are constants; the low proportion of user
defined types  used for parameters, and used in the package
specification and body; the mixing of input/output and non-input/output
statements in the same code unit; and the high proportion of constants,
types and subtypes that are visible. A check by the SRP staff revealed
the use of acceptable coding practices. 
 
IMPLEMENTATION ISSUES:
Us_Army_Data_Types provides two tables, the Grade table and the Rank
table.  It provides with them the maximum number of elements in the
table and the length of the elements in each table.

The following objects are visible in the package: 

  subtype TITLE_SUBTYPE is
    STRING (1 .. 10);

  Max_Grade_Types
    : constant NATURAL := 32;

  subtype GRADE_SUBTYPE is
    STRING (1 .. 4);

  type GRADE_TABLE_TYPE is 
    array (1 .. Max_Grade_Types) of GRADE_SUBTYPE;

  Grade_Table
    : constant GRADE_TABLE_TYPE
      := ("G AA", "GENA", "LTGA", "M GA", "B GA", "COLB", "LTCC", "MAJD",
          "CPTE", "CPT5", "1LTF", "1LT6", "2LTG", "2LT7", "CW4U", "CW3V",
	  "CW2W", "W01X", "SMA9", "CSM9", "SGMR", "MSG8", "1SGY", "SFC7",
          "PSGX", "SSG6", "SGT5", "CPL4", "SP4M", "PFC3", "PV22", "PV11" );

  Max_Army_Ranks
    : constant NATURAL := 22;

  subtype RANK_SUBTYPE is
    STRING (1 .. 3);

  type RANK_TABLE_TYPE is 
    array (1 .. Max_Army_Ranks) of RANK_SUBTYPE;

  Rank_Table
    : constant RANK_TABLE_TYPE
      := ("PVT", "PVC", "CPL", "1SG", "SGT", "SSG", "PSG", 
          "CSM", "1LT", "2LT", "WO1", "CW2", "CW3", "CW4", 
          "CPT", "MAJ", "LTC", "COL", "BDG", "MJG", "LTG", "GEN" );

HARDWARE/ENVIRONMENT CONSTRAINTS AND LIMITATIONS:
This package was compiled on a DEC VAX/VMS machine using the Ada
Compilation System (ACS). 

SUBUNITS:
Us_Army_Data_Types has no visible subunits.

DSRS CLASSIFICATION:
availability:  extractable
certification level:  level_4
component type:  design
data representation:  array
data representation:  constrained_array
data representation:  subtype
data representation:  type
function:  define
language:  ada
object:  type
originator:  rapid
unit type:  types_package

LEGAL RESTRICTIONS:
This RSA contains public domain data with unlimited rights for all
users.   Extraction is permitted to all authorized library users. This
software and its documentation are provided "as is" and without any
expressed or implied warranties whatsoever.  No warranties as to
performance, merchantability, or fitness for a particular purpose exist.

The user is advised to test the software thoroughly before relying on
it.  The user must assume the entire risk and liability of using this
software.  In no event shall any person or organization of people be
held responsible for any direct, indirect, consequential or
inconsequential damages or lost profits. 

MISCELLANEOUS:
The standard for Level 4 certification has recently been upgraded. This
asset is currently undergoing modification to meet the new Level 4
requirements.


REVISION HISTORY

January 17, 1994 Version 1 Original submission to PAL


RELEASE NOTICE

This prologue must be included in all copies of this software.
Restrictions on use or distribution:  NONE

LEGAL RESTRICTIONS:
This RSA contains public domain data with unlimited rights for all
users.   Extraction is permitted to all authorized library users. This
software and its documentation are provided "as is" and without any
expressed or implied warranties whatsoever.  No warranties as to
performance, merchantability, or fitness for a particular purpose exist.


DISCLAIMER

 This software and its documentation are provided "AS IS" and
without any expressed or implied warranties whatsoever.  No warranties
as to performance, merchantability, or fitness for a particular
purpose exist. 
 The user is advised to test the software thoroughly before
relying on it.  The user must assume the entire risk and liability of
using this software.  In no event shall any person or organization of
people be held responsible for any direct, indirect, consequential or
inconsequential damages or lost profits.