Package api
Interface IStatefulComponent
-
- All Superinterfaces:
IComponent
- All Known Implementing Classes:
AbstractStatefulComponent
,Counter
,ExternalValue
,Register
public interface IStatefulComponent extends IComponent
Subinterface of IComponent that adds methods for dealing with components that have internal state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears the internal state, if any (sets to all zeros).void
setEnabled(boolean enabled)
Enables or disables updates to the internal state, if any, when processing the tick() operation.void
tick()
Updates the internal state, if any, provided that the component is enabled.-
Methods inherited from interface api.IComponent
inputs, inputsValid, invalidateInputs, invalidateOutputs, outputs, outputsValid, propagate
-
-
-
-
Method Detail
-
tick
void tick()
Updates the internal state, if any, provided that the component is enabled.
-
setEnabled
void setEnabled(boolean enabled)
Enables or disables updates to the internal state, if any, when processing the tick() operation.- Parameters:
enabled
- whether or not this component should be enabled
-
clear
void clear()
Clears the internal state, if any (sets to all zeros).
-
-