/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2009 IITP RAS
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Authors: Pavel Boyko <boyko@iitp.ru>
 */
#ifndef PMP_REGRESSION_H
#define PMP_REGRESSION_H
#include "ns3/test.h"
#include "ns3/node-container.h"
#include "ns3/nstime.h"

using namespace ns3;
/**
 * \ingroup dot11s
 * 
 * \brief Peering Management Protocol regression test
 * 
 * Initiate scenario with 2 stations. Procedure of opening peer link
 * is the following:
 * \verbatim
 * |----------->|  Beacon
 * |<-----------|  Peer Link Open frame 
 * |----------->|  Peer Link Open frame
 * |----------->|  Peer Link Confirm frame
 * |<-----------|  Peer Link Confirm frame
 * |............|
 * |<---------->|  Other beacons
 * \endverbatim
 */
class PeerManagementProtocolRegressionTest : public TestCase
{
public:
  PeerManagementProtocolRegressionTest ();
  ~PeerManagementProtocolRegressionTest ();
  
private:
  /// XXX It is important to have pointers here
  NodeContainer * m_nodes;
  /// Simulation time
  Time m_time;
  
  void CreateNodes ();
  void CreateDevices ();
  void CheckResults ();
  void DoRun ();
};
#endif // PMP_REGRESSION_H

