|
sclock_t | curr_frame_width |
|
double | upper |
|
double | lower |
|
frame_resolution::frame_resolution |
( |
| ) |
|
resolution.cpp -
- Author
- : Jonathan Beard
- Version
- : Wed Aug 20 12:53:16 2014
Copyright 2014 Jonathan Beard
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
bool frame_resolution::acceptEntry |
( |
frame_resolution & |
frame, |
|
|
sclock_t |
realized_frame_time |
|
) |
| |
|
static |
acceptEntry - accept the current frame in frame if the realized interval for this observation is within the expected range.
- Parameters
-
- Returns
- bool if acceptable
static void frame_resolution::setBlockedStatus |
( |
frame_resolution & |
frame, |
|
|
Direction |
dir, |
|
|
const bool |
blocked = false |
|
) |
| |
|
static |
setBlockedStatus - sets the blocked status, which will be used to optimize the interval for data collection. Direction is needed so we know which side (the arrival process or service process) is actually blocked which might be used seperately in the future.
- Parameters
-
frame | - current frame_resolution object |
dir | - direction of current stat selection |
blocked | - true if blocked, false if not |
bool frame_resolution::updateResolution |
( |
frame_resolution & |
frame, |
|
|
sclock_t |
previous_loop_start, |
|
|
bool & |
blocked |
|
) |
| |
|
static |
updateResolution - function gets called at each iteration of the monitor loop until convergence is reached at which point this function returns true.
- Parameters
-
frame | - frame_resolution struct |
realized_frame_time | - actual time to go through loop |
- Returns
- bool
note: frame.curr_frame_width always > 0
wasBlocked - returns true if at any time in the previous NUMFRAMES the queue was blocked.
- Parameters
-
frame | - frame resolution reference. |
- Returns
- bool - true if the queue was blocked in NUMFRAMES
The documentation for this class was generated from the following files: