Home | History | Annotate | Download | only in research

Lines Matching defs:logUnits

23  * A buffer that holds a fixed number of LogUnits.
25 * LogUnits are added in and shifted out in temporal order. Only a subset of the LogUnits are
26 * actual words; the other LogUnits do not count toward the word limit. Once the buffer reaches
27 * capacity, adding another LogUnit that is a word evicts the oldest LogUnits out one at a time to
40 * Create a new LogBuffer that can hold a fixed number of LogUnits that are words (and
41 * unlimited number of non-word LogUnits), and that outputs its result to a researchLog.
67 // Give subclass a chance to handle the buffer full condition by shifting out logUnits.
93 * Removes all LogUnits from the buffer without calling onShiftOut().
103 * shift out LogUnits to bring it back down to the maximum.
121 * Remove LogUnits from the front of the LogBuffer until {@code numWords} have been removed.
139 final LinkedList<LogUnit> logUnits = getLogUnits();
140 while (!logUnits.isEmpty()) {
155 * there are not enough LogUnits in the buffer to meet the word requirement, then all LogUnits
162 final LinkedList<LogUnit> logUnits = getLogUnits();
163 // Allocate space for n*2 logUnits. There will be at least n, one for each word, and
167 for (final LogUnit logUnit : logUnits) {