// class dictionary for the insurance DB program import java.util.*; import java.io.*; Agents = AgentList . AgentRecord = "agent:" Person "," AgentCode . Insurees = InsureeList . InsureeRecord = "insuree:" Person "Policies:" PolicyList . Person = Name "," Name . Name = Ident. PolicyRecord = "(" PolicyType "," Premium "," AgentCode ")" . PolicyList ~ { PolicyRecord } . AgentList ~ "(" { AgentRecord } ")" . InsureeList ~ { InsureeRecord } . Transactions = TransList . Transaction : Transaction1 | Transaction2 | Transaction3 | Transaction4 | Transaction5 | Transaction6 . Transaction1 = "transaction1" TransType. Transaction2 = "transaction2" TransType. Transaction3 = "transaction3" TransType PolicyType . Transaction4 = "transaction4" TransType Premium. Transaction5 = "transaction5" TransType Person. Transaction6 = "transaction6" TransType . TransList ~ { Transaction } . Premium = int . TransType = int . AgentCode = int . PolicyType = Ident . T1Visitor = . T2Visitor = Agents Insurees . T3Visitor = Agents Insurees PolicyType . T4Visitor = Agents Insurees Premium . T5Visitor = AgentCode Person. T6Visitor = Agents Insurees . doTransVisitor = Agents Insurees . AVisitor = Person AgentCode. SumVisitor = AgentCode int . CheckVisitor = PolicyType AgentCode int . CountTVisitor = AgentCode Person int. CountPVisitor = AgentCode Person int int int . PrintingVisitor = . Main = .