scheduler.c File Reference

This file implements functions defined in scheduler.h. More...

#include "scheduler.h"
#include "logger.h"
#include "kh3moves.h"
#include <stdio.h>
#include <string.h>

Include dependency graph for scheduler.c:

Go to the source code of this file.

Functions

schedulerCommandcomputeSchedule (const void *polygon)
 Compute schedule from the given polygon.
schedulerCommandreadSchedule (const char *filename)
 Read and parse a precompiled schedule from a file.
void discardSchedule (schedulerCommand *schedule)
 Discards the schedule and frees the memory.
void printSchedule (schedulerCommand *schedule)
 Prints the given schedule on stdout.

Variables

WINDOW * schedulerLogWindow = NULL


Detailed Description

This file implements functions defined in scheduler.h.

Version:
Id
scheduler.c,v 1.11 2008/09/18 12:59:02 prokop Exp

Definition in file scheduler.c.


Function Documentation

schedulerCommand* computeSchedule ( const void *  polygon  ) 

Compute schedule from the given polygon.

Parameters:
polygon pointer to the polygon. Ignored at the moment.
Returns:
computed schedule, as array of type schedulerCommand Schedule ends with the finished plain command. May be NULL, which indicates an error.

Definition at line 35 of file scheduler.c.

void discardSchedule ( schedulerCommand schedule  ) 

Discards the schedule and frees the memory.

Parameters:
schedule Schedule to free

Definition at line 148 of file scheduler.c.

void printSchedule ( schedulerCommand schedule  ) 

Prints the given schedule on stdout.

Mainly for debugging and testing purposes.

Parameters:
schedule schedule to print

Definition at line 155 of file scheduler.c.

schedulerCommand* readSchedule ( const char *  filename  ) 

Read and parse a precompiled schedule from a file.

Parameters:
filename File containing the schedule
Returns:
read schedule, as array of type schedulerCommand Schedule ends with the finished plain command. May be NULL, which indicates a fatal error.

Definition at line 39 of file scheduler.c.


Variable Documentation

WINDOW* schedulerLogWindow = NULL

Definition at line 33 of file scheduler.c.


Generated on Sun Sep 28 21:20:01 2008 for Guard by  doxygen 1.5.6