Class: FelixDistribution
- Inherits:
-
Object
- Object
- FelixDistribution
- Defined in:
- lib/flows_distributions/felix_distribution.rb
Constant Summary collapse
- FELIX_MODE_HIGH_THROUGHOUT =
"FELIX_MODE_HIGH_THROUGHOUT"- FELIX_MODE_LOW_LATENCY =
"FELIX_MODE_LOW_LATENCY"
Instance Attribute Summary collapse
-
#buffer_bytes ⇒ Object
readonly
Returns the value of attribute buffer_bytes.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#out_size_bytes ⇒ Object
readonly
Returns the value of attribute out_size_bytes.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#size_bytes ⇒ Object
readonly
Returns the value of attribute size_bytes.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(period, mode, size_bytes = nil, buffer_bytes = nil, timeout = nil, out_size_bytes = nil) ⇒ FelixDistribution
constructor
A new instance of FelixDistribution.
Constructor Details
#initialize(period, mode, size_bytes = nil, buffer_bytes = nil, timeout = nil, out_size_bytes = nil) ⇒ FelixDistribution
9 10 11 12 13 14 15 16 |
# File 'lib/flows_distributions/felix_distribution.rb', line 9 def initialize(period, mode, size_bytes = nil, buffer_bytes = nil, timeout = nil, out_size_bytes = nil) @period = period #its the distribution of the message period arriving at the GBT link @mode = mode #Its either FELIX_MODE_LOW_LATENCY or FELIX_MODE_HIGH_THROUGHPUT @size_bytes = size_bytes || (NormalDistribution.new "4*k", "1*k") #Its a distribution of the message size arriving at the GBT link @buffer_bytes = buffer_bytes || "1 * M" @timeout = timeout || 1 @out_size_bytes = out_size_bytes || "TCP_MTU_bytes" end |
Instance Attribute Details
#buffer_bytes ⇒ Object (readonly)
Returns the value of attribute buffer_bytes.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def buffer_bytes @buffer_bytes end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def mode @mode end |
#out_size_bytes ⇒ Object (readonly)
Returns the value of attribute out_size_bytes.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def out_size_bytes @out_size_bytes end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def period @period end |
#size_bytes ⇒ Object (readonly)
Returns the value of attribute size_bytes.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def size_bytes @size_bytes end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
7 8 9 |
# File 'lib/flows_distributions/felix_distribution.rb', line 7 def timeout @timeout end |