Generated on Tue Apr 18 10:23:37 2017 for Gecode by doxygen 1.6.3

Gecode::Int::Event Class Reference

Time-tabling event for task. More...

#include <task.hh>

List of all members.

Public Types

enum  Type {
  LRT = 0, LCT = 1, EST = 2, ZRO = 3,
  ERT = 4, END = 5
}
 

Event type for task with order in which they are processed.

More...

Public Member Functions

void init (Type e, int t, int i)
 Initialize event.
Type type (void) const
 Return event type.
int time (void) const
 Return event time.
int idx (void) const
 Return event index.
bool operator< (const Event &e) const
 Order among events.

Static Public Member Functions

template<class Task >
static Eventevents (Region &r, const TaskArray< Task > &t, bool &assigned)
 Allocate from r and initialize event array with tasks t.
template<class Task >
static Eventevents (Region &r, const TaskArray< Task > &t)
 Allocate from r and initialize event array with assigned tasks t only.

Protected Attributes

unsigned int ei
 Combines type and number of task.
int t
 Time of event.

Detailed Description

Time-tabling event for task.

Definition at line 494 of file task.hh.


Member Enumeration Documentation

Event type for task with order in which they are processed.

Enumerator:
LRT 

Latest required time of task.

LCT 

Latest completion time of task.

EST 

Earliest start time of task.

ZRO 

Zero-length task start time.

ERT 

Earliest required time of task.

END 

End marker.

Definition at line 497 of file task.hh.


Member Function Documentation

void Gecode::Int::Event::init ( Event::Type  e0,
int  t,
int  i 
) [inline]

Initialize event.

Definition at line 41 of file event.hpp.

Event::Type Gecode::Int::Event::type ( void   )  const [inline]

Return event type.

Definition at line 46 of file event.hpp.

int Gecode::Int::Event::time ( void   )  const [inline]

Return event time.

Definition at line 50 of file event.hpp.

int Gecode::Int::Event::idx ( void   )  const [inline]

Return event index.

Definition at line 54 of file event.hpp.

bool Gecode::Int::Event::operator< ( const Event e  )  const [inline]

Order among events.

Definition at line 59 of file event.hpp.

template<class Task >
Event * Gecode::Int::Event::events ( Region r,
const TaskArray< Task > &  t,
bool &  assigned 
) [inline, static]

Allocate from r and initialize event array with tasks t.

Definition at line 87 of file event.hpp.

template<class Task >
Event * Gecode::Int::Event::events ( Region r,
const TaskArray< Task > &  t 
) [inline, static]

Allocate from r and initialize event array with assigned tasks t only.

Definition at line 132 of file event.hpp.


Member Data Documentation

unsigned int Gecode::Int::Event::ei [protected]

Combines type and number of task.

Definition at line 507 of file task.hh.

int Gecode::Int::Event::t [protected]

Time of event.

Definition at line 509 of file task.hh.


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