00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_NETATTRIBUTES_HPP
00017 #define TORC_GENERIC_OM_NETATTRIBUTES_HPP
00018
00019 #include "torc/generic/om/NetDelay.hpp"
00020
00021 namespace torc {
00022
00023 namespace generic {
00024
00025
00026
00027
00028
00029
00030 class NetAttributes
00031 {
00032 public:
00033
00034
00035
00036
00037
00038 inline const int32_t
00039 getCriticality() const throw();
00040
00041
00042
00043
00044
00045
00046 void
00047 setCriticality(const int32_t & value) throw();
00048
00049
00050
00051
00052
00053
00054 inline const NetDelay
00055 getNetDelay() const throw();
00056
00057
00058
00059
00060
00061
00062 void
00063 setNetDelay(const NetDelay & inSource) throw();
00064
00065 inline const bool
00066 getIsNetDelaySet() const throw();
00067
00068 inline const bool
00069 getIsCriticalitySet() const throw();
00070
00071 NetAttributes();
00072
00073 ~NetAttributes() throw();
00074
00075 NetAttributes(const NetAttributes & source);
00076
00077 NetAttributes &
00078 operator=(const NetAttributes & source) throw();
00079
00080 private:
00081
00082
00083
00084
00085 int32_t mCriticality;
00086
00087
00088
00089
00090
00091 NetDelay mNetDelay;
00092 bool mCriticalitySet;
00093 bool mNetDelaySet;
00094
00095 };
00096
00097 inline const int32_t
00098 NetAttributes::getCriticality() const throw() {
00099 return mCriticality;
00100 }
00101
00102 inline const NetDelay
00103 NetAttributes::getNetDelay() const throw() {
00104 return mNetDelay;
00105 }
00106
00107 inline const bool
00108 NetAttributes::getIsCriticalitySet() const throw() {
00109 return mCriticalitySet;
00110 }
00111
00112 inline const bool
00113 NetAttributes::getIsNetDelaySet() const throw() {
00114 return mNetDelaySet;
00115 }
00116
00117 }
00118
00119 }
00120 #endif // TORC_GENERIC_OM_NETATTRIBUTES_HPP