package rac; import lrs.*; /** * FIFO RAC * @author Mathias Ricken - Copyright 2008 - All rights reserved. */ public class LRSQueueFactory extends ALRSRACFactory { /** * Create a ``first-in, first-out'' (FIFO) container. */ public IRAContainer makeRAC() { return new LRSRAContainer(new IAlgo,T>() { public LRStruct emptyCase(LRStruct host, T... input) { return host.insertFront(input[0]); } public LRStruct nonEmptyCase(LRStruct host, T... input) { return host.getRest().execute(this, input); } }); } }