integrate

package
v0.0.0-...-f2d3015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectErrors

func InjectErrors(sim model.SimContext, output model.DataSinkBytes, frequency float64) model.DataSinkBytes

func MakeModelApp

func MakeModelApp(missionStartTime model.VirtualTime, controller *component.SimController, source model.DataSourceBytes, sink model.DataSinkBytes, recorder *component.CSVByteRecorder) timesync.ProtocolImpl

func MakePacketApp

func MakePacketApp(missionStartTime model.VirtualTime, main func(model.SimContext, fwmodel.PacketSource, fwmodel.PacketSink, *component.CSVByteRecorder), injectErrors bool, recordPath string) timesync.ProtocolImpl

func MakeTestApp

func MakeTestApp() timesync.ProtocolImpl

Types

type InjectedSink

type InjectedSink struct {
	// contains filtered or unexported fields
}

func (*InjectedSink) Subscribe

func (i *InjectedSink) Subscribe(callback func()) (cancel func())

func (*InjectedSink) TryWrite

func (i *InjectedSink) TryWrite(from []byte) int

type ModelApp

type ModelApp struct {
	// contains filtered or unexported fields
}

func (*ModelApp) Sync

func (t *ModelApp) Sync(pendingBytes int, nowRaw int64, writeData []byte) (expireAtRaw int64, readData []byte)

type TestApp

type TestApp struct {
	// contains filtered or unexported fields
}

func (*TestApp) Sync

func (t *TestApp) Sync(pendingBytes int, nowRaw int64, writeData []byte) (expireAtRaw int64, readData []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL