#############################################################################
#   This is the definition file for machine tools with Genius as the database
#
#############################################################################
###############################################################################
# dbc_machine_ascii.def - DBC Event Handler for database stored as ascii file
###############################################################################
##############################################################################
# REVISIONS
#   Date       Who              Reason
#   04-Dec-98  naveen &         Initial
#              binu
#   17-May-99  bill berg        add lathe, wedm and mixed machine types
#   14-Jun-99  Joachim Meyer    New DB_ID keywords due to new Format
#                               of the ASCII Data File
#   10-May-00  Satya            Added new class MILLTURN
#   15-Jan-2004 rlm             Add rigidity factor to database
#   22-Sep-2008 rlm             Add GRAPHICS attribute so def file matches dat
#   17-Jul-2012 Thomas Schulz   Change type identifier - make consistent with TC
#   23-Mar-2015 Paul Wilbrandt  Add part_file_path to NX UI displays
#   12-May-2015 Jeremy Wight    Add CLASS ROBOT
##############################################################################

DB_PREFIX  "DB("
DB_SUFFIX  ")"
ESS_PREFIX "ESS("
ESS_SUFFIX ")"

#############################################################################
#    The DB_ALIAS of the library reference. It is mandatory that this DB_ALIAS
#    appears in the alias list
#    
#############################################################################

#############################################################################
#    The list of DB_ALIAS
#
#    DB_ALIAS  <alias>
#    {
#         DB_ID       < Attribute identifier defined in the ASCII Data File
#         DB_ID_TYPE  < Type of the identifier >
#              d _ double
#              i _ integer
#              s _ string
#    }
#
##############################################################################

        DB_ALIAS  libref 
        {
           DB_ID        LIBRF
           DB_ID_TYPE   s
        }

        DB_ALIAS  Type 
        {
           DB_ID        T
           DB_ID_TYPE   s
        }

        DB_ALIAS  Manufacturer 
        {
           DB_ID        MNF
           DB_ID_TYPE   s	
        }

        DB_ALIAS  Description 
        {
           DB_ID        DESCR
           DB_ID_TYPE   s	
        }

        DB_ALIAS  Control  
        {
           DB_ID      CNTR
           DB_ID_TYPE   s
        }

        DB_ALIAS  config_file 
        {
           DB_ID      POST
           DB_ID_TYPE   s	
        }

        DB_ALIAS  rigidity
        {
           DB_ID      RIGID
           DB_ID_TYPE   d
        }

        DB_ALIAS  part_file_path 
        {
           DB_ID      GRAPHICS
           DB_ID_TYPE   s	
        }

LIBREF     libref

#########################################################################
#                      The Class Hierarchy                              #
#########################################################################
 CLASS MACHINE
 {
      TYPE   test1
      QUERY  "[1] == [1]"
      DIALOG Manufacturer
      RSET   libref Type Description Control Manufacturer config_file rigidity part_file_path
      CLASS MILL
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0101]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
      CLASS TURNMILL
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0104]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
      CLASS LATHE
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0201]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
      CLASS MILLTURN
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0204]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
      CLASS WEDM
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0301]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
      CLASS ROBOT
      {
          TYPE test2
          QUERY   "[DB(Type)] == [MDM0401]"
          DIALOG  Manufacturer
          RSET    libref Description Control Manufacturer rigidity
      }
      CLASS GENERIC
      {
         TYPE test2
         QUERY   "[DB(Type)] == [MDM0901]"
         DIALOG  Manufacturer
         RSET    libref Description Control Manufacturer rigidity
      }
}
