RaftLib  0.3a
C++ Stream Processing Template Library
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
frame_resolution Class Reference
Collaboration diagram for frame_resolution:
[legend]

Public Member Functions

 frame_resolution ()
 
sclock_t getFrameWidth ()
 

Static Public Member Functions

static void setBlockedStatus (frame_resolution &frame, Direction dir, const bool blocked=false)
 
static bool wasBlocked (frame_resolution &frame)
 
static bool updateResolution (frame_resolution &frame, sclock_t previous_loop_start, bool &blocked)
 
static bool acceptEntry (frame_resolution &frame, sclock_t realized_frame_time)
 
static void waitForInterval (frame_resolution &frame)
 

Public Attributes

sclock_t curr_frame_width
 
double upper
 
double lower
 

Constructor & Destructor Documentation

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.

Here is the call graph for this function:

Member Function Documentation

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
frame- frame_resolution
realized_frame_time- actual current time
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

Here is the call graph for this function:

static bool frame_resolution::wasBlocked ( frame_resolution frame)
static

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: