110448Snilay@cs.wisc.edu/* Copyright (c) 2012 Massachusetts Institute of Technology
210448Snilay@cs.wisc.edu *
310448Snilay@cs.wisc.edu * Permission is hereby granted, free of charge, to any person obtaining a copy
410448Snilay@cs.wisc.edu * of this software and associated documentation files (the "Software"), to deal
510448Snilay@cs.wisc.edu * in the Software without restriction, including without limitation the rights
610448Snilay@cs.wisc.edu * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
710448Snilay@cs.wisc.edu * copies of the Software, and to permit persons to whom the Software is
810448Snilay@cs.wisc.edu * furnished to do so, subject to the following conditions:
910448Snilay@cs.wisc.edu *
1010448Snilay@cs.wisc.edu * The above copyright notice and this permission notice shall be included in
1110448Snilay@cs.wisc.edu * all copies or substantial portions of the Software.
1210448Snilay@cs.wisc.edu *
1310448Snilay@cs.wisc.edu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1410448Snilay@cs.wisc.edu * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1510448Snilay@cs.wisc.edu * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1610448Snilay@cs.wisc.edu * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1710448Snilay@cs.wisc.edu * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1810448Snilay@cs.wisc.edu * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1910448Snilay@cs.wisc.edu * THE SOFTWARE.
2010448Snilay@cs.wisc.edu */
2110448Snilay@cs.wisc.edu
2210447Snilay@cs.wisc.edu#ifndef __DSENT_MODEL_EVENT_INFO_H__
2310447Snilay@cs.wisc.edu#define __DSENT_MODEL_EVENT_INFO_H__
2410447Snilay@cs.wisc.edu
2510447Snilay@cs.wisc.edu#include "util/CommonType.h"
2610447Snilay@cs.wisc.edu#include "model/TransitionInfo.h"
2710447Snilay@cs.wisc.edu
2810447Snilay@cs.wisc.edunamespace DSENT
2910447Snilay@cs.wisc.edu{
3010447Snilay@cs.wisc.edu    class PortInfo;
3110447Snilay@cs.wisc.edu
3210447Snilay@cs.wisc.edu    class EventInfo
3310447Snilay@cs.wisc.edu    {
3410447Snilay@cs.wisc.edu        public:
3510447Snilay@cs.wisc.edu            EventInfo(const String& event_name_, const Map<PortInfo*>* port_infos_);
3610447Snilay@cs.wisc.edu            ~EventInfo();
3710447Snilay@cs.wisc.edu
3810447Snilay@cs.wisc.edu        public:
3910447Snilay@cs.wisc.edu            const String& getEventName() const;
4010447Snilay@cs.wisc.edu            void setTransitionInfo(const String& port_name_, const TransitionInfo& trans_info_);
4110447Snilay@cs.wisc.edu            void setStaticTransitionInfo(const String& port_name_);
4210447Snilay@cs.wisc.edu            void setRandomTransitionInfos();
4310447Snilay@cs.wisc.edu            void setStaticTransitionInfos();
4410447Snilay@cs.wisc.edu            const TransitionInfo& getTransitionInfo(const String& port_name_) const;
4510447Snilay@cs.wisc.edu
4610447Snilay@cs.wisc.edu        private:
4710447Snilay@cs.wisc.edu            String m_event_name_;
4810447Snilay@cs.wisc.edu            Map<TransitionInfo>* m_trans_info_map_;
4910447Snilay@cs.wisc.edu    }; // class EventInfo
5010447Snilay@cs.wisc.edu} // namespace DSENT
5110447Snilay@cs.wisc.edu
5210447Snilay@cs.wisc.edu#endif // __DSENT_MODEL_EVENT_INFO_H__
5310447Snilay@cs.wisc.edu
54