BiPin

trait BiPin[T <: Txn[T], A] extends Obj[T] with Publisher[T, Update[T, A, BiPin[T, A]]]
Companion:
object
trait Obj[T]
trait Mutable[T]
trait Identified[T]
trait Elem[T]
trait Publisher[T, Update[T, A, BiPin[T, A]]]
trait Disposable[T]
trait Writable
trait Form[T]
class Object
trait Matchable
class Any
trait Modifiable[T, A]
class Impl[T, E, Repr]

Value members

Abstract methods

def at(time: Long)(implicit tx: T): Option[Entry[T, A]]

Queries the element valid for the given point in time. Unlike, intersect, if there are multiple elements sharing the same point in time, this returns the most recently added element.

Queries the element valid for the given point in time. Unlike, intersect, if there are multiple elements sharing the same point in time, this returns the most recently added element.

We propose that this should be the unambiguous way to evaluate the BiPin for a given moment in time.

Value parameters:
time

the query time point

Returns:

an element for the given time point, if it exists, otherwise None

def ceil(time: Long)(implicit tx: T): Option[Entry[T, A]]

Finds the entry at the given time, or the closest entry after the given time.

Finds the entry at the given time, or the closest entry after the given time.

Value parameters:
time

the query time

Returns:

the entry nearest in time to the query time, but not earlier than the query time, or None if there is no entry at such time

def debugList(implicit tx: T): List[(Long, A)]
def eventAfter(time: Long)(implicit tx: T): Option[Long]

Finds the entry with the smallest time which is greater than the query time.

Finds the entry with the smallest time which is greater than the query time.

Value parameters:
time

the query time

Returns:

the time corresponding to the next entry, or None if there is no entry later than the given time

def eventBefore(time: Long)(implicit tx: T): Option[Long]

Finds the entry with the greatest time which is less than the query time.

Finds the entry with the greatest time which is less than the query time.

Value parameters:
time

the query time

Returns:

the time corresponding to the next entry, or None if there is no entry earlier than the given time

def floor(time: Long)(implicit tx: T): Option[Entry[T, A]]

Finds the entry at the given time, or the closest entry before the given time.

Finds the entry at the given time, or the closest entry before the given time.

Value parameters:
time

the query time

Returns:

the entry nearest in time to the query time, but not later than the query time, or None if there is no entry at such time

def intersect(time: Long)(implicit tx: T): Leaf[T, A]

Queries all elements which are found at a given point in time. There may be multiple time expressions which are not equal but evaluate to the same moment in time. It is thus possible that for a given point, multiple elements are found.

Queries all elements which are found at a given point in time. There may be multiple time expressions which are not equal but evaluate to the same moment in time. It is thus possible that for a given point, multiple elements are found.

Value parameters:
time

the query point

Returns:

the sequence of elements found along with their time expressions

def isEmpty(implicit tx: T): Boolean

Returns true if not a single element is contained in the collection.

Returns true if not a single element is contained in the collection.

def modifiableOption: Option[Modifiable[T, A]]
def nonEmpty(implicit tx: T): Boolean

Returns true if at least one element is contained in the collection.

Returns true if at least one element is contained in the collection.

def valueAt(time: Long)(implicit tx: T): Option[A]

Inherited methods

final def attr(implicit tx: T): AttrMap[T]
Inherited from:
Obj
def changed: EventLike[T, Update[T, A, BiPin[T, A]]]
Inherited from:
Publisher
def dispose()(implicit tx: T): Unit
Inherited from:
Disposable
override def equals(that: Any): Boolean
Definition Classes
Identified -> Any
Inherited from:
Identified
override def hashCode: Int
Definition Classes
Identified -> Any
Inherited from:
Identified
def id: Ident[T]
Inherited from:
Identified
override def toString: String
Definition Classes
Obj -> Any
Inherited from:
Obj
override def tpe: Type
Definition Classes
Obj -> Elem
Inherited from:
Obj
def write(out: DataOutput): Unit
Inherited from:
Writable