Example #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 protected ValidationTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
 {
     m_Comm             = comm;
     m_uiBaudRate       = uiBaudRate;
     m_strProgramFile   = programFile;
     m_bTestPassed      = true;
     m_bTestSkipped     = false;
     m_AuthorizationKey = authKey;
 }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="Comm">The communication object that supports
        /// communication over the physical port.</param>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/14/10 AF  2.40           Created
        //
        public LGPassThrough(ICommunications Comm)
        {
            m_CommPort = Comm;

            // For checking when commport has received data
            m_CommPort.FlagCharReceived += new CommEvent(RcvdData);

            // Create semaphore to handle data received
            m_ReadEvent = new ManualResetEvent(false);
        }
Example #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="comm">
        /// The communication object that supports
        /// communication over the physical layer.
        /// </param>
        /// <example>
        /// <code>
        /// Communication comm = new Communication();
        /// comm.OpenPort("COM4:");
        /// CPSEM PSEM = new CPSEM(comm);
        /// </code>
        /// </example>
        /// MM/DD/YY who Version Issue# Description
        /// -------- --- ------- ------ ---------------------------------------
        /// 08/01/05 bdm 7.13.00 N/A	Created
        /// 06/14/06 mrj 7.30.00        Added ability to ignore wait commands
        /// 08/29/06 mrj 7.35.00        Store off the comm port to expose to
        ///                             the ANSI device, and the packet info.
        /// 04/16/10 AF  2.40.38        Added a max wait variable for M2 Gateway
        /// 04/26/10 AF  2.40.43        Replaced hard coded wait time with constant
        ///
        ///
        public CPSEM(ICommunications comm)
        {
            //The only communication supported is the port - which
            //implies c12.18.
            //When other communication types are supported the layer 7 protocol
            //such as C12.18 or C12.21) will need to be determined, likely from
            //the type of communication being supported (port, modem, ...).
            m_ANSIL7   = new CC1218L7(comm);
            m_CommPort = comm;
            m_hLogFile = Logger.TheInstance;

            m_byNbrPackets = DEFAULT_MAX_NUMBER_OF_PACKETS;
            m_lUserID      = DEFAULT_HH_PRO_USER_ID;
            m_iTimeFormat  = -1;
            m_MaxWaitTime  = MAX_WAIT_TIME;
        }
Example #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public ValidateProgramTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }
Example #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public NormalDisplayTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }
Example #6
0
 public TestableClass(ICommunications comms)
 {
     _comms = comms;
 }
Example #7
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public ClearBillingTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }
Example #8
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="comm">
 /// The communication object that supports
 /// communication over the physical layer.
 /// </param>
 /// <example>
 /// <code>
 /// Communication comm = new Communication();
 /// comm.OpenPort("COM4:");
 /// C1218L7 c1218l7 = new C1218L7(comm);
 /// </code>
 /// </example>
 public CC1218L7(ICommunications comm) : base(new CC1218L2(comm))
 {
 }
Example #9
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public ConnectDisconnectTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }
Example #10
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="objSerialPort">The communication object used for the
 /// serial port communications.</param>
 /// <example>
 /// <code>
 /// Communication objComm = new Communication();
 /// objComm.OpenPort("COM4:");
 /// CENTRON objCENTRON = new CENTRON(objComm);
 /// </code>
 /// </example>
 /// MM/DD/YY who Version Issue# Description
 /// -------- --- ------- ------ ---------------------------------------
 /// 04/27/06 mrj 7.30.00  N/A   Created
 /// 05/31/06 jrf 7.30.00  N/A	Modified
 ///
 public CENTRON(ICommunications objSerialPort) :
     base(objSerialPort)
 {
 }
Example #11
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">
 /// Communication object that supports communication over the
 /// physical layer
 /// </param>
 /// <example>
 /// <code>
 /// Communication comm = new Communication();
 /// comm.OpenPort("COM4:");
 /// C1218L2 c1218l2 = new C1218L2(comm)
 /// </code>
 /// </example>
 /// Revision History
 /// MM/DD/YY who Version Issue# Description
 /// -------- --- ------- ------ ---------------------------------------
 /// 08/01/05 bdm 7.13.00 N/A	Created
 public CC1218L2(ICommunications comm) : base(comm)
 {
 }
Example #12
0
 public Checkouts(IProductRepository productRepository, IPaymentOperations paymentOperations, ICommunications communications)
 {
     _productRepository = productRepository;
     _paymentOperations = paymentOperations;
     _communications    = communications;
 }
Example #13
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public DeviceStatusTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }
Example #14
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="comm">The communications object.</param>
 /// <param name="uiBaudRate">The baud rate to use.</param>
 /// <param name="programFile">The program file to use for the test.</param>
 /// <param name="authKey">The signed authorization key to use.</param>
 //  Revision History
 //  MM/DD/YY Who Version ID Number Description
 //  -------- --- ------- -- ------ -------------------------------------------
 //  09/17/09 RCG 2.30.00           Created
 //  09/19/14 jrf 4.00.63 WR 534158 removed unnecessary device class paramater.
 public ZigBeeRadioTest(ICommunications comm, uint uiBaudRate, string programFile, SignedAuthorizationKey authKey)
     : base(comm, uiBaudRate, programFile, authKey)
 {
 }