//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / IE
//
//File: connectionIdentifier.h
//
//Version: $Revision: 1.17 $
//
//State: $State: Exp $
//
//Date: $Date: 1999/03/10 16:05:42 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//      BISUP: Connection Element Identifier
//      UNI: Connection Identifier
//      Note! BISUP does not define preferred and exclusive fields.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 
//

#ifndef __IE_CONNECTIONIDENTIFIER_H__
#define __IE_CONNECTIONIDENTIFIER_H__

#include "connectioninfo.h"

class ieConnectionIdentifier : public ieConnectionInfo
{
    public:
        ieConnectionIdentifier(void);
        ieConnectionIdentifier(const ieConnectionIdentifier &other_);
        virtual ~ieConnectionIdentifier(void);
        const ieConnectionIdentifier &operator=(
            const ieConnectionIdentifier &other_);

        pfIE *clone(void) const;
        static ieConnectionIdentifier* narrow(pfIE *ie_);
        
        void setPort(pfUlong port_);
        pfUlong getPort(void) const;
        void setVPCI(pfUlong value_);
        pfUlong getVPCI(void) const;
        void setVCI(pfUlong value_);
        pfUlong getVCI(void) const;
        
        void setVPassociated(pfUlong _value);
        pfUlong getVPassociated(void) const;
        bool isVPassociated(void) const;
        
        void setPreferred(pfUlong _value);
        pfUlong getPreferred(void) const;
        bool isPreferred(void) const;
        
        virtual void connect(ieConnectionInfo *other_, 
                             bool bidirection_);
        virtual void connect(ieConnectionIdentifier *other_,
                             bool bidirection_);

        virtual void disconnect(ieConnectionInfo *other_,
                                bool bidirection_);
        virtual void disconnect(ieConnectionIdentifier *other_,
                                bool bidirection_);
        
    private:
	pfUlong _port;
        pfUlong _VPCI;
        pfUlong _VCI;
        pfUlong _VPassociated;
        pfUlong _preferred;
        bool _VPassociatedSet;
        bool _preferredSet;
};

#endif // __IE_CONNECTIONIDENTIFIER_H__

