Class SegmentBase
java.lang.Object
gda.factory.FindableBase
uk.ac.diamond.daq.experiment.plan.SegmentBase
- All Implemented Interfaces:
Findable,ISegment,SEVListener
- Direct Known Subclasses:
FixedDurationSegment,SimpleSegment
Base segment implementation which handles the enabling and disabling of triggers.
Final implementations provide limiting logic by implementing
shouldTerminate(double)-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Abort and deactivate all its triggersvoidactivate()Called by the PlanvoidEnables the given trigger when the segment is activatedbooleanvoidsignalChanged(double signal) Methods inherited from class gda.factory.FindableBase
equals, getName, hashCode, setName
-
Field Details
-
sev
-
-
Method Details
-
enable
Description copied from interface:ISegmentEnables the given trigger when the segment is activated -
isActivated
public boolean isActivated()- Specified by:
isActivatedin interfaceISegment
-
getTriggers
- Specified by:
getTriggersin interfaceISegment- Returns:
- list of triggers enabled within this segment
-
activate
public void activate()Description copied from interface:ISegmentCalled by the Plan -
abort
public void abort()Description copied from interface:ISegmentAbort and deactivate all its triggers -
signalChanged
public void signalChanged(double signal) - Specified by:
signalChangedin interfaceSEVListener
-
getSampleEnvironmentName
- Specified by:
getSampleEnvironmentNamein interfaceSEVListener
-