public final class ClassifierEventBased extends java.lang.Object implements Classifier<MemoryAccessPath>
ClassifierEventBased
classifies memory accesses using buffers and events. Memory accesses
are considered to be equivalent if they use the same buffers and causes the same events.Constructor and Description |
---|
ClassifierEventBased() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Set<MemoryAccessPath>> |
classify(java.lang.Iterable<MemoryAccessPath> paths) |
static java.util.Map<java.util.Map<MmuBufferAccess,BufferAccessEvent>,java.util.Set<MemoryAccessPath>> |
getBuffersAndEvents(java.lang.Iterable<MemoryAccessPath> paths)
Returns the collection of the memory access paths grouped by the buffer-event pairs.
|
static java.util.Map<MmuBufferAccess,BufferAccessEvent> |
getBuffersAndEvents(MemoryAccessPath path)
Returns the buffers-to-events map of the memory access path.
|
public static java.util.Map<MmuBufferAccess,BufferAccessEvent> getBuffersAndEvents(MemoryAccessPath path)
path
- the memory access path.public static java.util.Map<java.util.Map<MmuBufferAccess,BufferAccessEvent>,java.util.Set<MemoryAccessPath>> getBuffersAndEvents(java.lang.Iterable<MemoryAccessPath> paths)
paths
- the memory access paths,public java.util.List<java.util.Set<MemoryAccessPath>> classify(java.lang.Iterable<MemoryAccessPath> paths)
classify
in interface Classifier<MemoryAccessPath>