Lane

ferry.Lanes.Lane
final case class Lane[X](items: Vector[Item[X]], weight: Long, status: Status)

Attributes

Source
Lanes.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def firstBatch(limits: Limits): (NonEmptyChunk[Item[X]], Vector[Item[X]], Long)

The first items that fit in one batch: always at least one, even if it alone exceeds the weight limit.

The first items that fit in one batch: always at least one, even if it alone exceeds the weight limit.

Attributes

Source
Lanes.scala
def inserted(item: Item[X]): Vector[Item[X]]

items with item after every item of a rank up to its own. Inputs mostly arrive in rank order: search from the end.

items with item after every item of a rank up to its own. Inputs mostly arrive in rank order: search from the end.

Attributes

Source
Lanes.scala
def isFull(limits: Limits): Boolean

Attributes

Source
Lanes.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product