Interval

class Interval(value=None)[source]

Bases: object

Methods Summary

copy()

equals(other)

from1DBin(eis)

Read a list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

from2DBin(eis)

Read a 2D list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

from3Dbin(eis)

Read a 3D list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

fromBin(eis)

Read the binary representation of an Interval, in nanoseconds, from an EndianInput instance and use the read value to set an Interval.

fromString(s)

get()

getInstance(stringList)

Retrieve a value from a list of strings and convert that to an Interval

isZero()

listTo1DBin(intervalList, eos)

Write a 1D list of Interval to the EndianOutput

listTo2DBin(intervalList, eos)

Write a 2D list of Interval to the EndianOutput

listTo3DBin(intervalList, eos)

Write a 3D list of Interval to the EndianOutput

listToBin(intervalList, eos)

Write a list of Interval to the EndianOutput.

set(value)

toBin(eos)

Write this Interval out, in nanoseconds, to a EndianOutput.

unit()

Methods Documentation

copy()[source]
equals(other)[source]
static from1DBin(eis)[source]

Read a list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

static from2DBin(eis)[source]

Read a 2D list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

static from3Dbin(eis)[source]

Read a 3D list of binary Interval values, in nanoseconds, from an EndianInput instance and return the resulting list.

static fromBin(eis)[source]

Read the binary representation of an Interval, in nanoseconds, from an EndianInput instance and use the read value to set an Interval.

return an Interval

fromString(s)[source]
get()[source]
static getInstance(stringList)[source]

Retrieve a value from a list of strings and convert that to an Interval

This is used when parsing Interval lists from an XML representation to eventually construct a list of Interval instances. The string values are integer representation of an integer representing an interval in nanoseconds.

Returns a tuple of (Interval, stringList) where Interval is the new Interval created by this call and stringList is the remaining, unused, part of stringList after removing the first element.

isZero()[source]
static listTo1DBin(intervalList, eos)[source]

Write a 1D list of Interval to the EndianOutput

static listTo2DBin(intervalList, eos)[source]

Write a 2D list of Interval to the EndianOutput

static listTo3DBin(intervalList, eos)[source]

Write a 3D list of Interval to the EndianOutput

static listToBin(intervalList, eos)[source]

Write a list of Interval to the EndianOutput. The list may have 1, 2 or 3 dimensions.

set(value)[source]
toBin(eos)[source]

Write this Interval out, in nanoseconds, to a EndianOutput.

unit()[source]