package de.ugoe.cs.quest.usageprofiles; import java.util.List; /** *

* This interface defines basic functions for classes that implement a memory * about the recent events of a sequences. *

* * @author Steffen Herbold * @version 1.0 * * @param * Type of the sequence elements that are memorized. */ public interface IMemory { /** * Adds an element to the end of the memory. * * @param element * Element to be added. */ public void add(T element); /** *

* Returns the last num memorized elements. If the history is * shorter than num, the length of the returned * {@link java.util.List} may be less than num. *

* * @param num * Number of states from the end of the memory to be returned. * @return {@link java.util.List} of memorized elements. */ public List getLast(int num); }