bnl.core.LeveledBoundary

class bnl.core.LeveledBoundary(time, level)[source]

Bases: RatedBoundary

A boundary that exists in a monotonic hierarchy.

This object represents a boundary that has been assigned a discrete hierarchical level. The salience attribute is automatically set to be equal to the level.

Parameters:
  • time (float) – The time of the boundary in seconds.

  • level (int) – The discrete hierarchical level of the boundary. Must be a positive integer.

Raises:

ValueError – If level is not a positive integer.

Public Data Attributes:

level

The discrete hierarchical level of the boundary.

salience

time

Inherited from RatedBoundary

salience

Inherited from Boundary

time


level: int

The discrete hierarchical level of the boundary.