14 #define DEFAULT_CAPACITY "1Mbps"
19 #define DEFAULT_DELAY "1ms"
24 #define DEFAULT_WEIGHT 1
29 #define DEFAULT_BUFFER_SIZE "100packets"
43 const float &weight_ = DEFAULT_WEIGHT,
44 const Quantity &bufferSize_ =
Quantity(DEFAULT_BUFFER_SIZE, Units::BufferSize));
void setBufferSize(const Quantity &bufferSize_)
Definition: edge.cpp:38
void setWeight(float weight_)
Definition: edge.cpp:22
void setDelay(const Quantity &delay_)
Definition: edge.cpp:30
Quantity getDelay() const
Definition: edge.cpp:26
void setCapacity(const Quantity &capacity_)
Definition: edge.cpp:14
Edge(const Quantity &capacity_=Quantity(DEFAULT_CAPACITY, Units::Bandwidth), const Quantity &delay_=Quantity(DEFAULT_DELAY, Units::Time), const float &weight_=DEFAULT_WEIGHT, const Quantity &bufferSize_=Quantity(DEFAULT_BUFFER_SIZE, Units::BufferSize))
Definition: edge.cpp:5
float getWeight() const
Definition: edge.cpp:18
Quantity getBufferSize() const
Definition: edge.cpp:34
Quantity getCapacity() const
Definition: edge.cpp:10
Definition: quantity.h:16