
CachedSDFScheduler |
ptolemy.domains.sdf.kernel.CachedSDFScheduler |
The CachedSDFScheduler extends the SDFScheduler by caching schedules.
The cached schedules are labeled by their corresponding rate signatures,
with the most recently used at the beginning of the cache queue. If the
rate signatures are contained in the cache keys, then the corresponding
schedule in the cache is used. Therefore, we do not need to recompute the
schedule again.
The size of the cache in the CachedSDFScheduler is usually set by its
containing director when constructing this scheduler. If the cache is
full, the least recently used schedule (at the end of the cache) is
discarded.
Author(s): Ye Zhou. Contributor: Brian K. Vogel
Version:$Id: CachedSDFScheduler.java,v 1.9 2006/03/29 20:30:54 cxh Exp $
Pt.Proposed Rating:Red (zhouye)
Pt.Accepted Rating:Red (cxh)