Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

STSysSchedEvent Class Reference

#include <STSysSchedEvent.h>

Inherits SEvent.

Inheritance diagram for STSysSchedEvent:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Id {
  JOBRESET, JOBSTATECHANGED, JOBOVERDUE, JOBPHASEFINISHED,
  JOBALLOCATED, JOBDEALLOCATED, MACHINEBROKEN, MACHINEREPAIRED
}
enum  Type {
  ILLEGAL, SCHEDEVENT, VISEVENT, EDITEVENT,
  PREFEVENT, ALGEVENT
}

Public Methods

 STSysSchedEvent ()
 STSysSchedEvent (Id id, int p, int j)
Id getId () const
int getPos () const
int getJob () const
virtual Type getType () const
virtual void write (std::ostream &rOs) const

Detailed Description

Event concerning the simulation process (jobs are scheduled, machines break etc). CAUTION: The algorithm gets a list of all events that have happened during the last simulation step. Therefore, the scheduling events are not only propagated via the normal observer-mechanism but also gathered in a list. This should be regarded as completely independed from the observer-mechanism! The observer policy (generate events when the state changes) must also be obeyed for scheduling events. Avoid special treatment for this!


Member Enumeration Documentation

enum STSysSchedEvent::Id
 

Defined Ids: JOBRESET, JOBSTATECHANGED, JOBOVERDUE (the due date of a job has passed), JOBPHASEFINISHED (job has finished a single operation but not the total execution, only generated by job shops), JOBALLOCATED , JOBDEALLOCATED, MACHINEBROKEN, MACHINEREPAIRED

Enumeration values:
JOBRESET 
JOBSTATECHANGED 
JOBOVERDUE 
JOBPHASEFINISHED 
JOBALLOCATED 
JOBDEALLOCATED 
MACHINEBROKEN 
MACHINEREPAIRED 

enum SEvent::Type [inherited]
 

Types of events : ILLEGAL, SCHEDEVENT, VISEVENT, EDITEVENT, PREFEVENT

Enumeration values:
ILLEGAL 
SCHEDEVENT 
VISEVENT 
EDITEVENT 
PREFEVENT 
ALGEVENT 


Constructor & Destructor Documentation

STSysSchedEvent::STSysSchedEvent   [inline]
 

STSysSchedEvent::STSysSchedEvent Id    id,
int    p,
int    j
[inline]
 

Constructor

Parameters:
id  event id
p  position of machine (-1 if non-interesting)
j  index of job (-1 if non-interesting)


Member Function Documentation

Id STSysSchedEvent::getId   const [inline]
 

Get the id of an SchedEvent

Returns:
id

int STSysSchedEvent::getJob   const [inline]
 

Get the job index

Returns:
index of job

int STSysSchedEvent::getPos   const [inline]
 

Get the machine position

Returns:
machine position

virtual Type STSysSchedEvent::getType   const [inline, virtual]
 

Get the type of this event

Returns:
SCHEDEVENT

Reimplemented from SEvent.

void STSysSchedEvent::write std::ostream &    rOs const [virtual]
 

Write event to stream

Parameters:
rOs  output stream

Reimplemented from SEvent.


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:55 2003 for Sketch-it! by doxygen1.2.18