Skip to main content

Identity

The Identity operator forwards all input messages without modification, maintaining their timestamp and value. Each message received on input port 0 is immediately forwarded to output port 0.

Configuration

Requires only an operator ID.

Ports

  • Input Port 0: Accepts NumberData messages
  • Output Port 0: Emits NumberData messages

Example Operation

TimeInput Port 0Output Port 0
142.042.0
2--
315.715.7
4--
533.133.1

Behavior

The Identity operator:

  • Maintains message order
  • Preserves timestamps
  • Does not buffer messages
  • Has constant 1:1 throughput
  • Performs no data transformation

Mathematical representation: y(tn)=x(tn)y(t_n) = x(t_n)

Error Handling

Throws std::runtime_error if:

  • Receiving message with incorrect type
  • Receiving message on invalid port