Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
JobPlanning_test Class Reference

Description

Test:
document and verify the data aggregation and the calculations necessary to prepare render jobs for scheduling.

Definition at line 50 of file job-planning-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleUsage ()
 
void calculateDeadline ()
 
void setupDependentJob ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Test
static string firstTok (Arg)
 conveniently pick the first token from the argument line
 
static uint firstVal (Arg, uint=1)
 conveniently use some number given as argument, with optional default
 
- Public Member Functions inherited from Test
virtual ~Test ()=default
 this is an interface
 
virtual void run (Arg arg)=0
 
void seedRand ()
 draw a new random seed from a common nucleus, and re-seed the default-Gen.
 
lib::Random makeRandGen ()
 build a dedicated new RandomGen, seeded from the default-Gen
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 54 of file job-planning-test.cpp.

References JobPlanning_test::calculateDeadline(), Test::seedRand(), JobPlanning_test::setupDependentJob(), and JobPlanning_test::simpleUsage().

+ Here is the call graph for this function:

◆ simpleUsage()

void simpleUsage ( )
inlineprivate
Test:
demonstrate a simple usage scenario

Definition at line 67 of file job-planning-test.cpp.

References MockDispatcher::getDummyConnection(), MockDispatcher::getJobTicketFor(), FrameRate::PAL, MockDispatcher::resolveModelPort(), and MockDispatcher::verify().

Referenced by JobPlanning_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calculateDeadline()

void calculateDeadline ( )
inlineprivate
Test:
verify the timing calculations to establish the scheduling deadline of a simple render job

Definition at line 90 of file job-planning-test.cpp.

References Time::ANYTIME, steam::play::ASAP, MockDispatcher::getDummyConnection(), JobTicket::getExpectedRuntime(), MockDispatcher::getJobTicketFor(), FrameRate::PAL, MockDispatcher::resolveModelPort(), and steam::play::TIMEBOUND.

Referenced by JobPlanning_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupDependentJob()

void setupDependentJob ( )
inlineprivate
Test:
verify the setup of a prerequisite job in relation to the master job depending on this prerequisite

Definition at line 136 of file job-planning-test.cpp.

References Time::ANYTIME, steam::play::ASAP, Record< VAL >::Mutator::attrib(), JobTicket::getExpectedRuntime(), JobTicket::getPrerequisites(), and FrameRate::PAL.

Referenced by JobPlanning_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for JobPlanning_test:
+ Collaboration diagram for JobPlanning_test:

The documentation for this class was generated from the following file: