Package org.eclipse.scanning.api
Class CountableScannable<T>
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.AbstractNameableTimeoutable
org.eclipse.scanning.api.AbstractScannable<T>
org.eclipse.scanning.api.CountableScannable<T>
- All Implemented Interfaces:
IActivatable,IBoundable<T>,ILevel,INameable,IScanAttributeContainer,IScannable<T>,ITimeoutable,ITolerable<T>,IPositionListenable
- Direct Known Subclasses:
MockScannable
A scannable with the ability to record method counts.
This is primarily useful for testing and debugging it
means that a dependency on Mockhito is not required
in order to count method calls.
-
Field Summary
Fields inherited from class org.eclipse.scanning.api.AbstractScannable
delegate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCountableScannable(IPublisher<Location> publisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcount(StackTraceElement[] ste) intprotected static final StringgetMethodName(StackTraceElement[] ste) voidMethods inherited from class org.eclipse.scanning.api.AbstractScannable
addPositionListener, getDeviceInformation, getLevel, getMaximum, getMinimum, getModel, getScanAttribute, getScanAttributeNames, getTolerance, isActivated, register, removePositionListener, setActivated, setLevel, setMaximum, setMinimum, setModel, setPublisher, setScanAttribute, setToleranceMethods inherited from class org.eclipse.scanning.api.AbstractNameableTimeoutable
equals, getTimeout, hashCode, setTimeout, toStringMethods inherited from class org.eclipse.scanning.api.AbstractNameable
getName, setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.IBoundable
getPermittedValues, getPositionMethods inherited from interface org.eclipse.scanning.api.scan.event.IPositionListenable
getPositioner, setPositionerMethods inherited from interface org.eclipse.scanning.api.IScannable
abort, getUnit, setPosition, setPositionMethods inherited from interface org.eclipse.scanning.api.ITimeoutable
getTimeout, setTimeout
-
Constructor Details
-
CountableScannable
protected CountableScannable() -
CountableScannable
-
-
Method Details
-
count
-
getCount
-
getMethodName
-
resetCount
public void resetCount()
-