demos.atomicblocks
Class SDFSampleDelay
java.lang.Object
modhelxs.abstractsemantics.NamedEntity
modhelxs.abstractsemantics.ObservableEntity
modhelxs.abstractsemantics.Block
modhelxs.abstractsemantics.AtomicBlock
demos.atomicblocks.SDFSampleDelay
- All Implemented Interfaces:
- AtomicBlock, Block, NamedEntity, ObservableEntity
public class SDFSampleDelay
- extends AtomicBlock
An SDFSampleDelay is an SDF block which delays its input by one sample.
At the first update, its produces an initial value on its output.
This initial value is set by the "init" property (default value 0).
- Author:
- boulange
|
Constructor Summary |
SDFSampleDelay(java.lang.String name,
java.lang.Object... properties)
|
|
Method Summary |
void |
endOfSnapshot()
End of the observation round, the observable can update its internal state. |
Pin |
input()
|
Pin |
output()
|
void |
reset()
Reset the computation of the outputs and next state for the current snapshot. |
void |
setup()
Prepare for the simulation. |
void |
update()
Update the interface of the observable: take inputs into account, update outputs. |
| Methods inherited from class modhelxs.abstractsemantics.Block |
connect, connectFromInterfaceBlock, connectFromModel, connectFromRegularBlock, getEngine, getInputPins, getMoC, getOutputPins, getParent, getSolver, getTimeOfRequest, hasObservationRequest, sanityCheck, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
next_value_
private java.lang.Object next_value_
current_value_
private java.lang.Object current_value_
input_
private final Pin input_
output_
private final Pin output_
SDFSampleDelay
public SDFSampleDelay(java.lang.String name,
java.lang.Object... properties)
input
public Pin input()
output
public Pin output()
setup
public void setup()
- Description copied from class:
ObservableEntity
- Prepare for the simulation. Called after prep, before the first step of the simulation.
- Overrides:
setup in class AtomicBlock
reset
public void reset()
- Description copied from class:
ObservableEntity
- Reset the computation of the outputs and next state for the current snapshot.
- Overrides:
reset in class AtomicBlock
update
public void update()
- Description copied from class:
ObservableEntity
- Update the interface of the observable: take inputs into account, update outputs.
- Specified by:
update in class ObservableEntity
endOfSnapshot
public void endOfSnapshot()
- Description copied from class:
ObservableEntity
- End of the observation round, the observable can update its internal state.
- Overrides:
endOfSnapshot in class AtomicBlock