stubbing some job functions
This commit is contained in:
parent
365f54d59e
commit
1e54b5d3e6
3 changed files with 26 additions and 4 deletions
|
|
@ -26,8 +26,11 @@
|
|||
|
||||
#include "proc/common.hpp"
|
||||
//#include "proc/state.hpp"
|
||||
#include "proc/engine/job.hpp"
|
||||
#include "proc/engine/frame-coord.hpp"
|
||||
//#include "lib/time/timevalue.hpp"
|
||||
//#include "lib/time/timequant.hpp"
|
||||
#include "lib/iter-source.hpp"
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
|
|
@ -67,6 +70,7 @@ namespace engine {
|
|||
{
|
||||
|
||||
public:
|
||||
typedef lib::IterSource<Job>::iterator JobsPlanning;
|
||||
|
||||
JobTicket()
|
||||
{
|
||||
|
|
@ -74,6 +78,12 @@ namespace engine {
|
|||
}
|
||||
|
||||
|
||||
JobsPlanning
|
||||
createJobsFor (FrameCoord coordinates)
|
||||
{
|
||||
UNIMPLEMENTED ("job planning and generation")
|
||||
}
|
||||
|
||||
bool
|
||||
isValid() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ struct lumiera_jobParameter_struct
|
|||
{
|
||||
InvocationInstanceID invoKey;
|
||||
gavl_time_t nominalTime;
|
||||
//////////////////////////////////////////////////////////////TODO: place a parameter value here, or make the instanceID globally unique?
|
||||
//////////////////////////////////////////////////////////////TODO: place an additional parameter value here, or make the instanceID globally unique?
|
||||
};
|
||||
typedef struct lumiera_jobParameter_struct lumiera_jobParameter;
|
||||
typedef lumiera_jobParameter* LumieraJobParameter;
|
||||
|
|
@ -98,7 +98,7 @@ typedef lumiera_jobDescriptor* LumieraJobDescriptor;
|
|||
|
||||
#include "proc/common.hpp"
|
||||
//#include "proc/state.hpp"
|
||||
//#include "lib/time/timevalue.hpp"
|
||||
#include "lib/time/timevalue.hpp"
|
||||
//#include "lib/time/timequant.hpp"
|
||||
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ namespace engine {
|
|||
//using lib::time::TimeSpan;
|
||||
//using lib::time::Duration;
|
||||
//using lib::time::FSecs;
|
||||
//using lib::time::Time;
|
||||
using lib::time::Time;
|
||||
//
|
||||
//class ExitNode;
|
||||
|
||||
|
|
@ -147,6 +147,18 @@ namespace engine {
|
|||
void signalFailure (lumiera_jobParameter) const;
|
||||
|
||||
|
||||
Time
|
||||
getNominalTime() const
|
||||
{
|
||||
UNIMPLEMENTED ("job representation, planning and scheduling");
|
||||
}
|
||||
|
||||
InvocationInstanceID
|
||||
getInvocationInstanceID() const
|
||||
{
|
||||
UNIMPLEMENTED ("job representation, planning and scheduling");
|
||||
}
|
||||
|
||||
bool
|
||||
isValid() const
|
||||
{
|
||||
|
|
|
|||
|
|
@ -143,13 +143,13 @@ namespace test {
|
|||
JobTicket& executionPlan = dispatcher.accessJobTicket (coordinates);
|
||||
CHECK (executionPlan.isValid());
|
||||
|
||||
#if false /////////////////////////////////////////////////////////////////////////////////////////////////////////////UNIMPLEMENTED :: TICKET #880
|
||||
JobTicket::JobsPlanning jobs = executionPlan.createJobsFor (coordinates);
|
||||
CHECK (!isnil (jobs));
|
||||
|
||||
Job headJob = *jobs;
|
||||
CHECK (headJob.getNominalTime() == coordinates.absoluteNominalTime);
|
||||
CHECK (0 < headJob.getInvocationInstanceID());
|
||||
#if false /////////////////////////////////////////////////////////////////////////////////////////////////////////////UNIMPLEMENTED :: TICKET #880
|
||||
#endif /////////////////////////////////////////////////////////////////////////////////////////////////////////////UNIMPLEMENTED :: TICKET #880
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue