lestes::backend_v2::workers::schedule_item Class Reference

Represents item of a schedule. More...

#include <scheduler.g.hh>

Inheritance diagram for lestes::backend_v2::workers::schedule_item:

lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< ::lestes::backend_v2::intercode::ge_piinstruction_get () const
 The method instruction_get returns the value of the field schedule_item::instruction.
void instruction_set (const ptr< ::lestes::backend_v2::intercode::ge_pi > &)
 The method instruction_set sets the field schedule_item::instruction to the given value.
ptr< ::lestes::std::set< srp<
schedule_item > > > 
in_deps_get () const
 The method in_deps_get returns the value of the field schedule_item::in_deps.
void in_deps_set (const ptr< ::lestes::std::set< srp< schedule_item > > > &)
 The method in_deps_set sets the field schedule_item::in_deps to the given value.
ptr< ::lestes::std::set< srp<
schedule_item > > > 
in_deps_copy_get () const
 The method in_deps_copy_get returns the value of the field schedule_item::in_deps_copy.
void in_deps_copy_set (const ptr< ::lestes::std::set< srp< schedule_item > > > &)
 The method in_deps_copy_set sets the field schedule_item::in_deps_copy to the given value.
ptr< ::lestes::std::set< srp<
schedule_item > > > 
out_deps_get () const
 The method out_deps_get returns the value of the field schedule_item::out_deps.
void out_deps_set (const ptr< ::lestes::std::set< srp< schedule_item > > > &)
 The method out_deps_set sets the field schedule_item::out_deps to the given value.
ptr< ::lestes::std::set< srp<
schedule_item > > > 
out_deps_copy_get () const
 The method out_deps_copy_get returns the value of the field schedule_item::out_deps_copy.
void out_deps_copy_set (const ptr< ::lestes::std::set< srp< schedule_item > > > &)
 The method out_deps_copy_set sets the field schedule_item::out_deps_copy to the given value.
ulint etime_get () const
 The method etime_get returns the value of the field schedule_item::etime.
void etime_set (ulint)
 The method etime_set sets the field schedule_item::etime to the given value.
ulint ctime_get () const
 The method ctime_get returns the value of the field schedule_item::ctime.
void ctime_set (ulint)
 The method ctime_set sets the field schedule_item::ctime to the given value.
ulint start_time_get () const
 The method start_time_get returns the value of the field schedule_item::start_time.
void start_time_set (ulint)
 The method start_time_set sets the field schedule_item::start_time to the given value.
ulint end_time_get () const
 The method end_time_get returns the value of the field schedule_item::end_time.
void end_time_set (ulint)
 The method end_time_set sets the field schedule_item::end_time to the given value.
ulint latest_start_time_get () const
 The method latest_start_time_get returns the value of the field schedule_item::latest_start_time.
void latest_start_time_set (ulint)
 The method latest_start_time_set sets the field schedule_item::latest_start_time to the given value.
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Static Public Member Functions

static ptr< schedule_itemcreate (ptr< ::lestes::backend_v2::intercode::ge_pi > a__schedule_item__instruction, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__in_deps, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__in_deps_copy, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__out_deps, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__out_deps_copy, ulint a__schedule_item__etime, ulint a__schedule_item__ctime, ulint a__schedule_item__start_time, ulint a__schedule_item__end_time, ulint a__schedule_item__latest_start_time)
 First generated factory method for class schedule_item.
static ptr< schedule_itemcreate (ptr< ::lestes::backend_v2::intercode::ge_pi > a__schedule_item__instruction, ulint a__schedule_item__etime, ulint a__schedule_item__ctime)
 Second generated factory method for class schedule_item.

Protected Member Functions

 schedule_item (ptr< ::lestes::backend_v2::intercode::ge_pi > a__schedule_item__instruction, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__in_deps, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__in_deps_copy, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__out_deps, ptr< ::lestes::std::set< srp< schedule_item > > > a__schedule_item__out_deps_copy, ulint a__schedule_item__etime, ulint a__schedule_item__ctime, ulint a__schedule_item__start_time, ulint a__schedule_item__end_time, ulint a__schedule_item__latest_start_time)
 Generated constructor for class schedule_item.
virtual void gc_mark ()
 Marking routine for class schedule_item.

Private Attributes

srp< ::lestes::backend_v2::intercode::ge_piinstruction
 The pseudonstruction that is represented by this instance of schedule_item.
srp< ::lestes::std::set< srp<
schedule_item > > > 
in_deps
 A set of schedule_items on which this item is dependent.
srp< ::lestes::std::set< srp<
schedule_item > > > 
in_deps_copy
 A copy of the in_deps set.
srp< ::lestes::std::set< srp<
schedule_item > > > 
out_deps
 A set of schedule_items that are dependent on this item.
srp< ::lestes::std::set< srp<
schedule_item > > > 
out_deps_copy
 A copy of the out_deps set.
ulint etime
 Execution time of the instruction.
ulint ctime
 A time perid that elapses after the instruction's execution before an output operand is ready.
ulint start_time
 A start time within critical path method.
ulint end_time
 An end time within critical path method.
ulint latest_start_time
 A latest start time within critical path method.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Represents item of a schedule.

Definition at line 152 of file scheduler.g.hh.


Constructor & Destructor Documentation

lestes::backend_v2::workers::schedule_item::schedule_item ( ptr< ::lestes::backend_v2::intercode::ge_pi a__schedule_item__instruction,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__in_deps,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__in_deps_copy,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__out_deps,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__out_deps_copy,
ulint  a__schedule_item__etime,
ulint  a__schedule_item__ctime,
ulint  a__schedule_item__start_time,
ulint  a__schedule_item__end_time,
ulint  a__schedule_item__latest_start_time 
) [protected]

Generated constructor for class schedule_item.

Generated constructor for class schedule_item.

Author:
lsg

Definition at line 378 of file scheduler.g.cc.

Referenced by create().

00388         : ::lestes::std::object(), instruction(checked(a__schedule_item__instruction)), in_deps(a__schedule_item__in_deps), in_deps_copy(a__schedule_item__in_deps_copy), out_deps(a__schedule_item__out_deps), out_deps_copy(a__schedule_item__out_deps_copy), etime(a__schedule_item__etime), ctime(a__schedule_item__ctime), start_time(a__schedule_item__start_time), end_time(a__schedule_item__end_time), latest_start_time(a__schedule_item__latest_start_time)
00389 {}


Member Function Documentation

ptr<::lestes::backend_v2::intercode::ge_pi > lestes::backend_v2::workers::schedule_item::instruction_get (  )  const

The method instruction_get returns the value of the field schedule_item::instruction.

Returns:
The value of schedule_item::instruction.
Author:
lsg

Definition at line 160 of file scheduler.g.cc.

References instruction.

00161 {
00162         return instruction;
00163 }

void lestes::backend_v2::workers::schedule_item::instruction_set ( const ptr< ::lestes::backend_v2::intercode::ge_pi > &  x  ) 

The method instruction_set sets the field schedule_item::instruction to the given value.

Parameters:
[in] x The new value to set schedule_item::instruction to.
Author:
lsg

Definition at line 169 of file scheduler.g.cc.

References instruction.

00170 {
00171         schedule_item::instruction = x;
00172 }

ptr<::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::in_deps_get (  )  const

The method in_deps_get returns the value of the field schedule_item::in_deps.

Returns:
The value of schedule_item::in_deps.
Author:
lsg

Definition at line 178 of file scheduler.g.cc.

References in_deps.

00179 {
00180         return in_deps;
00181 }

void lestes::backend_v2::workers::schedule_item::in_deps_set ( const ptr< ::lestes::std::set< srp< schedule_item > > > &  x  ) 

The method in_deps_set sets the field schedule_item::in_deps to the given value.

Parameters:
[in] x The new value to set schedule_item::in_deps to.
Author:
lsg

Definition at line 187 of file scheduler.g.cc.

References in_deps.

00188 {
00189         schedule_item::in_deps = x;
00190 }

ptr<::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::in_deps_copy_get (  )  const

The method in_deps_copy_get returns the value of the field schedule_item::in_deps_copy.

Returns:
The value of schedule_item::in_deps_copy.
Author:
lsg

Definition at line 196 of file scheduler.g.cc.

References in_deps_copy.

00197 {
00198         return in_deps_copy;
00199 }

void lestes::backend_v2::workers::schedule_item::in_deps_copy_set ( const ptr< ::lestes::std::set< srp< schedule_item > > > &  x  ) 

The method in_deps_copy_set sets the field schedule_item::in_deps_copy to the given value.

Parameters:
[in] x The new value to set schedule_item::in_deps_copy to.
Author:
lsg

Definition at line 205 of file scheduler.g.cc.

References in_deps_copy.

00206 {
00207         schedule_item::in_deps_copy = x;
00208 }

ptr<::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::out_deps_get (  )  const

The method out_deps_get returns the value of the field schedule_item::out_deps.

Returns:
The value of schedule_item::out_deps.
Author:
lsg

Definition at line 214 of file scheduler.g.cc.

References out_deps.

00215 {
00216         return out_deps;
00217 }

void lestes::backend_v2::workers::schedule_item::out_deps_set ( const ptr< ::lestes::std::set< srp< schedule_item > > > &  x  ) 

The method out_deps_set sets the field schedule_item::out_deps to the given value.

Parameters:
[in] x The new value to set schedule_item::out_deps to.
Author:
lsg

Definition at line 223 of file scheduler.g.cc.

References out_deps.

00224 {
00225         schedule_item::out_deps = x;
00226 }

ptr<::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::out_deps_copy_get (  )  const

The method out_deps_copy_get returns the value of the field schedule_item::out_deps_copy.

Returns:
The value of schedule_item::out_deps_copy.
Author:
lsg

Definition at line 232 of file scheduler.g.cc.

References out_deps_copy.

00233 {
00234         return out_deps_copy;
00235 }

void lestes::backend_v2::workers::schedule_item::out_deps_copy_set ( const ptr< ::lestes::std::set< srp< schedule_item > > > &  x  ) 

The method out_deps_copy_set sets the field schedule_item::out_deps_copy to the given value.

Parameters:
[in] x The new value to set schedule_item::out_deps_copy to.
Author:
lsg

Definition at line 241 of file scheduler.g.cc.

References out_deps_copy.

00242 {
00243         schedule_item::out_deps_copy = x;
00244 }

ulint lestes::backend_v2::workers::schedule_item::etime_get (  )  const

The method etime_get returns the value of the field schedule_item::etime.

Returns:
The value of schedule_item::etime.
Author:
lsg

Definition at line 250 of file scheduler.g.cc.

References etime.

00251 {
00252         return etime;
00253 }

void lestes::backend_v2::workers::schedule_item::etime_set ( ulint  x  ) 

The method etime_set sets the field schedule_item::etime to the given value.

Parameters:
[in] x The new value to set schedule_item::etime to.
Author:
lsg

Definition at line 259 of file scheduler.g.cc.

References etime.

00260 {
00261         schedule_item::etime = x;
00262 }

ulint lestes::backend_v2::workers::schedule_item::ctime_get (  )  const

The method ctime_get returns the value of the field schedule_item::ctime.

Returns:
The value of schedule_item::ctime.
Author:
lsg

Definition at line 268 of file scheduler.g.cc.

References ctime.

00269 {
00270         return ctime;
00271 }

void lestes::backend_v2::workers::schedule_item::ctime_set ( ulint  x  ) 

The method ctime_set sets the field schedule_item::ctime to the given value.

Parameters:
[in] x The new value to set schedule_item::ctime to.
Author:
lsg

Definition at line 277 of file scheduler.g.cc.

References ctime.

00278 {
00279         schedule_item::ctime = x;
00280 }

ulint lestes::backend_v2::workers::schedule_item::start_time_get (  )  const

The method start_time_get returns the value of the field schedule_item::start_time.

Returns:
The value of schedule_item::start_time.
Author:
lsg

Definition at line 286 of file scheduler.g.cc.

References start_time.

00287 {
00288         return start_time;
00289 }

void lestes::backend_v2::workers::schedule_item::start_time_set ( ulint  x  ) 

The method start_time_set sets the field schedule_item::start_time to the given value.

Parameters:
[in] x The new value to set schedule_item::start_time to.
Author:
lsg

Definition at line 295 of file scheduler.g.cc.

References start_time.

00296 {
00297         schedule_item::start_time = x;
00298 }

ulint lestes::backend_v2::workers::schedule_item::end_time_get (  )  const

The method end_time_get returns the value of the field schedule_item::end_time.

Returns:
The value of schedule_item::end_time.
Author:
lsg

Definition at line 304 of file scheduler.g.cc.

References end_time.

00305 {
00306         return end_time;
00307 }

void lestes::backend_v2::workers::schedule_item::end_time_set ( ulint  x  ) 

The method end_time_set sets the field schedule_item::end_time to the given value.

Parameters:
[in] x The new value to set schedule_item::end_time to.
Author:
lsg

Definition at line 313 of file scheduler.g.cc.

References end_time.

00314 {
00315         schedule_item::end_time = x;
00316 }

ulint lestes::backend_v2::workers::schedule_item::latest_start_time_get (  )  const

The method latest_start_time_get returns the value of the field schedule_item::latest_start_time.

Returns:
The value of schedule_item::latest_start_time.
Author:
lsg

Definition at line 322 of file scheduler.g.cc.

References latest_start_time.

00323 {
00324         return latest_start_time;
00325 }

void lestes::backend_v2::workers::schedule_item::latest_start_time_set ( ulint  x  ) 

The method latest_start_time_set sets the field schedule_item::latest_start_time to the given value.

Parameters:
[in] x The new value to set schedule_item::latest_start_time to.
Author:
lsg

Definition at line 331 of file scheduler.g.cc.

References latest_start_time.

00332 {
00333         schedule_item::latest_start_time = x;
00334 }

ptr< schedule_item > lestes::backend_v2::workers::schedule_item::create ( ptr< ::lestes::backend_v2::intercode::ge_pi a__schedule_item__instruction,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__in_deps,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__in_deps_copy,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__out_deps,
ptr< ::lestes::std::set< srp< schedule_item > > >  a__schedule_item__out_deps_copy,
ulint  a__schedule_item__etime,
ulint  a__schedule_item__ctime,
ulint  a__schedule_item__start_time,
ulint  a__schedule_item__end_time,
ulint  a__schedule_item__latest_start_time 
) [static]

First generated factory method for class schedule_item.

This factory method for class schedule_item takes values of all fields as arguments.

Author:
lsg

Definition at line 340 of file scheduler.g.cc.

References schedule_item().

Referenced by create().

00350 {
00351         return ptr< schedule_item > ( new schedule_item(a__schedule_item__instruction,
00352                 a__schedule_item__in_deps,
00353                 a__schedule_item__in_deps_copy,
00354                 a__schedule_item__out_deps,
00355                 a__schedule_item__out_deps_copy,
00356                 a__schedule_item__etime,
00357                 a__schedule_item__ctime,
00358                 a__schedule_item__start_time,
00359                 a__schedule_item__end_time,
00360                 a__schedule_item__latest_start_time) );
00361 }

ptr< schedule_item > lestes::backend_v2::workers::schedule_item::create ( ptr< ::lestes::backend_v2::intercode::ge_pi a__schedule_item__instruction,
ulint  a__schedule_item__etime,
ulint  a__schedule_item__ctime 
) [static]

Second generated factory method for class schedule_item.

This factory method for class schedule_item uses initializers.

Author:
lsg

Definition at line 367 of file scheduler.g.cc.

References create(), and schedule_item().

00370 {
00371         return ptr< schedule_item > ( new schedule_item(a__schedule_item__instruction, ::lestes::std::set< srp< schedule_item > > ::create(), ::lestes::std::set< srp< schedule_item > > ::create(), ::lestes::std::set< srp< schedule_item > > ::create(), ::lestes::std::set< srp< schedule_item > > ::create(), a__schedule_item__etime, a__schedule_item__ctime, 0, 0, 0xfffffffe) );
00372 }

ptr< object::reflection_list > lestes::backend_v2::workers::schedule_item::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Definition at line 391 of file scheduler.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::std::object::reflection_get().

00392 {
00393         if (!reflection) {
00394                 typedef class_reflection::field_metadata md;
00395                 typedef class_reflection::field_metadata_list mdlist;
00396                 ptr<mdlist> mdl = mdlist::create();
00397                 mdl->push_back( md::create( "instruction", "ge_pi" ) );
00398                 mdl->push_back( md::create( "in_deps", "set&lt; srp&lt; schedule_item &gt; &gt;" ) );
00399                 mdl->push_back( md::create( "in_deps_copy", "set&lt; srp&lt; schedule_item &gt; &gt;" ) );
00400                 mdl->push_back( md::create( "out_deps", "set&lt; srp&lt; schedule_item &gt; &gt;" ) );
00401                 mdl->push_back( md::create( "out_deps_copy", "set&lt; srp&lt; schedule_item &gt; &gt;" ) );
00402                 mdl->push_back( md::create( "etime", "ulint" ) );
00403                 mdl->push_back( md::create( "ctime", "ulint" ) );
00404                 mdl->push_back( md::create( "start_time", "ulint" ) );
00405                 mdl->push_back( md::create( "end_time", "ulint" ) );
00406                 mdl->push_back( md::create( "latest_start_time", "ulint" ) );
00407                 reflection = reflection_list::create( ::lestes::std::object::reflection_get() );
00408                 reflection->push_back( class_reflection::create( "schedule_item", mdl ) );
00409         }
00410         return reflection;
00411 }

ptr< object::field_list_list > lestes::backend_v2::workers::schedule_item::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Definition at line 413 of file scheduler.g.cc.

References lestes::std::list< T >::create(), and lestes::std::object::field_values_get().

00414 {
00415         ptr < field_list_list > result = ::lestes::std::object::field_values_get();
00416         result->push_back( value_list::create() );
00417         result->back()->push_back( this->instruction );
00418         result->push_back( value_list::create() );
00419         result->back()->push_back( this->in_deps );
00420         result->push_back( value_list::create() );
00421         result->back()->push_back( this->in_deps_copy );
00422         result->push_back( value_list::create() );
00423         result->back()->push_back( this->out_deps );
00424         result->push_back( value_list::create() );
00425         result->back()->push_back( this->out_deps_copy );
00426         result->push_back( value_list::create() );
00427         result->back()->push_back( objectize< ulint > ::create( this->etime ) );
00428         result->push_back( value_list::create() );
00429         result->back()->push_back( objectize< ulint > ::create( this->ctime ) );
00430         result->push_back( value_list::create() );
00431         result->back()->push_back( objectize< ulint > ::create( this->start_time ) );
00432         result->push_back( value_list::create() );
00433         result->back()->push_back( objectize< ulint > ::create( this->end_time ) );
00434         result->push_back( value_list::create() );
00435         result->back()->push_back( objectize< ulint > ::create( this->latest_start_time ) );
00436         return result;
00437 }

void lestes::backend_v2::workers::schedule_item::gc_mark ( void   )  [protected, virtual]

Marking routine for class schedule_item.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::std::mem::keystone.

Definition at line 444 of file scheduler.g.cc.

References lestes::std::mem::keystone::gc_mark().

00445 {
00446 	::lestes::std::object::gc_mark();
00447 }


Member Data Documentation

srp< ::lestes::backend_v2::intercode::ge_pi > lestes::backend_v2::workers::schedule_item::instruction [private]

The pseudonstruction that is represented by this instance of schedule_item.

Definition at line 260 of file scheduler.g.hh.

Referenced by instruction_get(), and instruction_set().

srp< ::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::in_deps [private]

A set of schedule_items on which this item is dependent.

Definition at line 262 of file scheduler.g.hh.

Referenced by in_deps_get(), and in_deps_set().

srp< ::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::in_deps_copy [private]

A copy of the in_deps set.

Definition at line 264 of file scheduler.g.hh.

Referenced by in_deps_copy_get(), and in_deps_copy_set().

srp< ::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::out_deps [private]

A set of schedule_items that are dependent on this item.

Definition at line 266 of file scheduler.g.hh.

Referenced by out_deps_get(), and out_deps_set().

srp< ::lestes::std::set< srp< schedule_item > > > lestes::backend_v2::workers::schedule_item::out_deps_copy [private]

A copy of the out_deps set.

Definition at line 268 of file scheduler.g.hh.

Referenced by out_deps_copy_get(), and out_deps_copy_set().

ulint lestes::backend_v2::workers::schedule_item::etime [private]

Execution time of the instruction.

Definition at line 270 of file scheduler.g.hh.

Referenced by etime_get(), and etime_set().

ulint lestes::backend_v2::workers::schedule_item::ctime [private]

A time perid that elapses after the instruction's execution before an output operand is ready.

Definition at line 272 of file scheduler.g.hh.

Referenced by ctime_get(), and ctime_set().

ulint lestes::backend_v2::workers::schedule_item::start_time [private]

A start time within critical path method.

Definition at line 274 of file scheduler.g.hh.

Referenced by start_time_get(), and start_time_set().

ulint lestes::backend_v2::workers::schedule_item::end_time [private]

An end time within critical path method.

Definition at line 276 of file scheduler.g.hh.

Referenced by end_time_get(), and end_time_set().

ulint lestes::backend_v2::workers::schedule_item::latest_start_time [private]

A latest start time within critical path method.

Definition at line 278 of file scheduler.g.hh.

Referenced by latest_start_time_get(), and latest_start_time_set().

ptr< object::reflection_list > lestes::backend_v2::workers::schedule_item::reflection = reflection [static, private]

Reimplemented from lestes::std::object.

Definition at line 279 of file scheduler.g.hh.

Referenced by reflection_get().


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:24:11 2007 for lestes by doxygen 1.5.1-20070107