The Meta-Environment API

toolbus.viewer
Class PerformanceInformationHandler.PerformanceStatsEntryHandler

java.lang.Object
  extended by toolbus.util.collections.ConcurrentHashMap.HashMapEntryHandler<ToolInstance,aterm.ATerm>
      extended by toolbus.viewer.PerformanceInformationHandler.PerformanceStatsEntryHandler
All Implemented Interfaces:
toolbus.util.collections.EntryHandlerConstants
Enclosing class:
PerformanceInformationHandler

private static class PerformanceInformationHandler.PerformanceStatsEntryHandler
extends toolbus.util.collections.ConcurrentHashMap.HashMapEntryHandler<ToolInstance,aterm.ATerm>

Entry handler used for iterating over the arrived performance statistics.

Author:
Arnold Lankamp

Field Summary
private  IPerformanceMonitor performanceMonitor
           
 
Fields inherited from class toolbus.util.collections.ConcurrentHashMap.HashMapEntryHandler
canRemove
 
Fields inherited from interface toolbus.util.collections.EntryHandlerConstants
BREAK, CONTINUE, REMOVE
 
Constructor Summary
PerformanceInformationHandler.PerformanceStatsEntryHandler(IPerformanceMonitor performanceMonitor)
          Costructor.
 
Method Summary
 int handle(ToolInstance toolInstance, aterm.ATerm performanceStats)
          Handles one entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

performanceMonitor

private final IPerformanceMonitor performanceMonitor
Constructor Detail

PerformanceInformationHandler.PerformanceStatsEntryHandler

public PerformanceInformationHandler.PerformanceStatsEntryHandler(IPerformanceMonitor performanceMonitor)
Costructor.

Parameters:
performanceMonitor - The performance monitor that handles the data.
Method Detail

handle

public int handle(ToolInstance toolInstance,
                  aterm.ATerm performanceStats)
Description copied from class: toolbus.util.collections.ConcurrentHashMap.HashMapEntryHandler
Handles one entry.

Specified by:
handle in class toolbus.util.collections.ConcurrentHashMap.HashMapEntryHandler<ToolInstance,aterm.ATerm>
Parameters:
toolInstance - The key.
performanceStats - The value.
Returns:
The operation the iterator should take (continue, break or remove).
See Also:
ConcurrentHashMap.HashMapEntryHandler.handle(Object, Object)

The Meta-Environment API