netwire-3.1.0: Fast generic automaton arrow transformer for AFRP

MaintainerErtugrul Soeylemez <es@ertes.de>

Control.Wire.Trans.Clock

Contents

Description

Supplying clocks to wires.

Synopsis

Time deltas

class Arrow >~ => WWithDT t (>~) | >~ -> t whereSource

Passes time deltas to the given wire with respect to the clock represented by the underlying arrow. Using this wire transformer you can program in the more traditional AFRP way using time deltas instead of time offsets. Note: The first time delta is 0.

  • Depends: Like argument wire.
  • Inhibits: When argument wire inhibits.

Methods

passDT :: Wire e >~ t b -> Wire e >~ a bSource

Simplified variant without additional input.

withDT :: Wire e >~ (a, t) b -> Wire e >~ a bSource

Full variant.

Instances

Global time

class Arrow >~ => WWithSysTime t (>~) | >~ -> t whereSource

Passes the system time to the given wire.

  • Depends: Like argument wire.
  • Inhibits: When argument wire inhibits.

Methods

passSysTime :: Wire e >~ t b -> Wire e >~ a bSource

Simplified variant without additional input.

withSysTime :: Wire e >~ (a, t) b -> Wire e >~ a bSource

Full variant.

Instances

Local time

class Arrow >~ => WWithTime t (>~) | >~ -> t whereSource

Passes the time passed since the first instant to the given wire.

  • Depends: Like argument wire.
  • Inhibits: When argument wire inhibits.

Methods

passTime :: Wire e >~ t b -> Wire e >~ a bSource

Simplified variant without additional input.

withTime :: Wire e >~ (a, t) b -> Wire e >~ a bSource

Full variant.

Instances