Prism.core
Interface AbstractScheduler

All Known Implementing Classes:
EDFScheduler, FIFOScheduler

public interface AbstractScheduler

AbstractScheduler defines an abstract class for performing architectural level scheduling of events. This basically comes down to the ordering policy of events in the queue.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Method Summary
 void add(Event e)
          Add a message to the list in an arbitrary order.
 Event getEvent()
          Get the next message to be dispatched in an arbitrary order.
 int getWaitingLength()
          Get the number of messages waiting to be dispatched.
 void setEventCapacity(int n)
          Set the capacity of messages that can be stored before being dispatched
 

Method Detail

add

void add(Event e)
Add a message to the list in an arbitrary order.

Parameters:
e - Event object to be added to the list

getWaitingLength

int getWaitingLength()
Get the number of messages waiting to be dispatched.

Returns:
int Number of waiting messages

getEvent

Event getEvent()
Get the next message to be dispatched in an arbitrary order. The order is decided by the class implementing this interface

Returns:
Event the event object for dispatched event

setEventCapacity

void setEventCapacity(int n)
Set the capacity of messages that can be stored before being dispatched

Parameters:
n - int the required capacity of the message store