trigger¶
A Trigger
is a boolean valued function of the timestep. An operation will
perform its action when Trigger returns True
. A single trigger object
may be assigned to multiple operations.
See Trigger
for details on creating user-defined triggers or use one of the
provided subclasses.
- hoomd.trigger.trigger_like¶
An object that can serve as a trigger for an operation.
Any instance of a
Trigger
subclass is allowed, as well as an int instance or any object convertible to an int. The integer is converted to aPeriodic
trigger viaPeriodic(period=int(a))
wherea
is the passed integer.Note
Attributes that are
Trigger
objects can be set via atrigger_like
object.
Classes