---
url: /dyad/dev/stdlib/BlockComponents/types/Interfaces.IntegerSignalSource.md
description: >-
  Dyad Interfaces.IntegerSignalSource docs.  Base class for continuous Integer
  signal source.
---

# `Interfaces.IntegerSignalSource` {#Interfaces.IntegerSignalSource}

Base class for continuous Integer signal source.

Basic block for Integer sources of package Blocks.Sources. This component has one continuous Integer output signal y and two parameters (offset, startTime) to shift the generated signal.

This component extends from [`BlockComponents.Interfaces.IntegerSO`](Interfaces.IntegerSO.md)

## Usage {#Usage}

`BlockComponents.Interfaces.IntegerSignalSource(offset=0, startTime=0)`

## Parameters: {#Parameters:}

|        Name |                               Description | Units | Default value |
| -----------:| -----------------------------------------:| -----:| -------------:|
|    `offset` |                 Offset of output signal y |     – |             0 |
| `startTime` | Output y = offset for time < startTime |     – |             0 |

## Connectors {#Connectors}

* `y` - This connector represents an integer signal as an output from a component ([`IntegerOutput`](/stdlib/Dyad/connectors/IntegerOutput#IntegerOutput))

## Source {#Source}

```dyad
"""
Base class for continuous Integer signal source.

Basic block for Integer sources of package Blocks.Sources.
This component has one continuous Integer output signal y
and two parameters (offset, startTime) to shift the generated signal.
"""
partial component IntegerSignalSource
  extends BlockComponents.Interfaces.IntegerSO
  "Offset of output signal y"
  parameter offset::Integer = 0
  "Output y = offset for time < startTime"
  parameter startTime::Real = 0
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end
```

```dyad
"""
Base class for continuous Integer signal source.

Basic block for Integer sources of package Blocks.Sources.
This component has one continuous Integer output signal y
and two parameters (offset, startTime) to shift the generated signal.
"""
partial component IntegerSignalSource
  "Connector of Integer output signal"
  y = IntegerOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 560, "rot": 0}
      },
      "tags": []
    }
  }
  "Offset of output signal y"
  parameter offset::Integer = 0
  "Output y = offset for time < startTime"
  parameter startTime::Real = 0
relations
metadata {"Dyad": {"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}]}}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses
