Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## demos.atomicblocks
Class SDFScale

    java.lang.Object
      modhelxs.abstractsemantics.NamedEntity
          modhelxs.abstractsemantics.ObservableEntity
              modhelxs.abstractsemantics.Block
                  modhelxs.state_management.ManagedBlock
                      modhelxs.state_management.PlainManagedBlock
                          demos.atomicblocks.SDFScale

All Implemented Interfaces:
  Block, NamedEntity, ObservableEntity

    public class SDFScale

extends PlainManagedBlock

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).

Author:
  boulange

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

### scale

    private Parameter<java.lang.Double> scale

### input

    private final Pin input

### output

    private final Pin output

Constructor Detail

### SDFScale

    public SDFScale(java.lang.String name,
                    java.lang.Object... properties)

Method Detail

### input

    public Pin input()

### output

    public Pin output()

### doSetup

    public void doSetup()

  Description copied from class: `ManagedBlock`
  The setup behavior of the block.

  Specified by:
    `doSetup` in class `ManagedBlock`

### doUpdate

    public void doUpdate()

  Description copied from class: `ManagedBlock`
  The update behavior of the block.

  Specified by:
    `doUpdate` in class `ManagedBlock`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD