00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_TIMING_HPP
00017 #define TORC_GENERIC_OM_TIMING_HPP
00018
00019 #include "torc/generic/om/PointerTypes.hpp"
00020 #include "torc/generic/om/Visitable.hpp"
00021 #include "torc/generic/om/SelfReferencing.hpp"
00022 #include "torc/generic/om/Commentable.hpp"
00023 #include "torc/generic/om/UserDataContainer.hpp"
00024 #include "torc/generic/util/Error.hpp"
00025 #include "torc/generic/om/Derivation.hpp"
00026 #include "torc/generic/om/FactoryType.hpp"
00027 #include "torc/generic/om/VisitorType.hpp"
00028
00029 namespace torc { namespace generic { class BaseVisitor; } }
00030 namespace torc { namespace generic { class PathDelay; } }
00031 namespace torc { namespace generic { class ForbiddenEvent; } }
00032
00033 namespace torc {
00034
00035 namespace generic {
00036
00037
00038
00039
00040
00041 class Timing
00042 : public Visitable,
00043 public SelfReferencing<Timing>,
00044 public Commentable,
00045 public UserDataContainer
00046 {
00047 friend class FactoryType<Timing>;
00048
00049 public:
00050
00051
00052
00053 typedef VisitorType<Timing> Visitor;
00054
00055 virtual void
00056 accept(BaseVisitor & inoutVisitor) throw(Error);
00057
00058
00059
00060
00061 class Factory: public FactoryType<Timing>
00062 {
00063 public:
00064 using FactoryType<Timing>::create;
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 virtual TimingSharedPtr
00081 newTimingPtr( const Derivation & inDerivation,
00082 const std::list< PathDelaySharedPtr > & inPathDelays,
00083 const std::list< ForbiddenEventSharedPtr > & inForbiddentEvents,
00084 const ViewSharedPtr & inView,
00085 const InterfaceAttributesSharedPtr & inInterfaceAttributes
00086 = InterfaceAttributesSharedPtr(),
00087 const InstanceSharedPtr & inInstance
00088 = InstanceSharedPtr() ) throw(Error);
00089 };
00090
00091
00092
00093
00094
00095
00096 inline const Derivation
00097 getDerivation() const throw();
00098
00099
00100
00101
00102
00103
00104 void
00105 setDerivation(const Derivation & value) throw();
00106
00107
00108
00109
00110
00111
00112 inline void
00113 getPathDelays( std::list< PathDelaySharedPtr > & outPathDelays ) const throw();
00114
00115
00116
00117
00118
00119
00120 void
00121 setPathDelays( const std::list< PathDelaySharedPtr > & inPathDelays ) throw();
00122
00123
00124
00125
00126
00127
00128 void
00129 addPathDelay(const PathDelaySharedPtr & inSource) throw();
00130
00131
00132
00133
00134
00135
00136 inline void
00137 getForbiddentEvents(
00138 std::list< ForbiddenEventSharedPtr > & outForbiddentEvents ) const throw();
00139
00140
00141
00142
00143
00144
00145 void
00146 setForbiddentEvents(
00147 const std::list< ForbiddenEventSharedPtr > & inForbiddentEvents ) throw();
00148
00149
00150
00151
00152
00153
00154 void
00155 addForbiddenEvent(const ForbiddenEventSharedPtr & inSource) throw();
00156
00157 ~Timing() throw();
00158
00159 protected:
00160 Timing();
00161
00162 private:
00163 Timing(const Timing & source) throw();
00164
00165 Timing &
00166 operator=(const Timing & source) throw();
00167
00168 Derivation mDerivation;
00169 std::list< PathDelaySharedPtr > mPathDelays;
00170 std::list< ForbiddenEventSharedPtr > mForbiddentEvents;
00171
00172 };
00173
00174
00175
00176
00177
00178
00179 inline const Derivation
00180 Timing::getDerivation() const throw() {
00181 return mDerivation;
00182 }
00183
00184
00185
00186
00187
00188
00189 inline void
00190 Timing::getPathDelays(
00191 std::list< PathDelaySharedPtr > & outPathDelays ) const throw() {
00192 outPathDelays.insert( outPathDelays.end(),
00193 mPathDelays.begin(), mPathDelays.end() );
00194 }
00195
00196
00197
00198
00199
00200
00201 inline void
00202 Timing::getForbiddentEvents(
00203 std::list< ForbiddenEventSharedPtr > & outForbiddentEvents ) const throw() {
00204 outForbiddentEvents.insert( outForbiddentEvents.end(),
00205 mForbiddentEvents.begin(), mForbiddentEvents.end() );
00206 }
00207
00208 }
00209
00210 }
00211 #endif // TORC_GENERIC_OM_TIMING_HPP