|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.abstractsemantics.NamedEntity
modhelxs.abstractsemantics.ObservableEntity
modhelxs.abstractsemantics.Block
modhelxs.state_management.ManagedBlock
modhelxs.state_management.PlainManagedBlock
demos.atomicblocks.SDFScale
public class SDFScale
An SDFScale is an SDF block which scales its input. Each value read on the input is multiplied by the scale and put on the output. The input and output pins must have the same rate. The scale is set by the "scale" property (default value 1.0).
| Field Summary | |
|---|---|
private Pin |
input
|
private Pin |
output
|
private Parameter<java.lang.Double> |
scale
|
| Constructor Summary | |
|---|---|
SDFScale(java.lang.String name,
java.lang.Object... properties)
|
|
| Method Summary | |
|---|---|
void |
doSetup()
The setup behavior of the block. |
void |
doUpdate()
The update behavior of the block. |
Pin |
input()
|
Pin |
output()
|
| Methods inherited from class modhelxs.state_management.PlainManagedBlock |
|---|
doEndOfSnapshot, doPreSetup, doReset, doStartOfSnapshot |
| Methods inherited from class modhelxs.state_management.ManagedBlock |
|---|
emitObservationRequests, endOfSnapshot, endOfUpdate, initFromProperties, prep, reset, setup, startOfSnapshot, startOfUpdate, update, validate, wasUpdated, wrapup |
| 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 modhelxs.abstractsemantics.ObservableEntity |
|---|
addPin, getInterface, getPin |
| Methods inherited from class modhelxs.abstractsemantics.NamedEntity |
|---|
getName, getProperties, getProperty, hasProperty, removeProperty, setName, setProperties, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface modhelxs.ecore.ObservableEntity |
|---|
getInterface |
| Methods inherited from interface modhelxs.ecore.NamedEntity |
|---|
getName, getProperties, setName |
| Field Detail |
|---|
private Parameter<java.lang.Double> scale
private final Pin input
private final Pin output
| Constructor Detail |
|---|
public SDFScale(java.lang.String name,
java.lang.Object... properties)
| Method Detail |
|---|
public Pin input()
public Pin output()
public void doSetup()
ManagedBlock
doSetup in class ManagedBlockpublic void doUpdate()
ManagedBlock
doUpdate in class ManagedBlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||