scalation.MultiArrayDeques
The MultiArrayDeques class provides a data structure for storing multiple ArrayDeques for the purpose of maintaining multiple parallel lanes. For example cars on a multi-lane road can be positioned in this data structure. It allows cars to added and removed and supports finding cars at a similar distance (from the start) to be found in another lane.
Value parameters
nLanes
the number of lanes
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Members list
Add an new element to the beginning of lane l.
Add an new element to the beginning of lane l.
Value parameters
elem
the element to be added
l
the l-th lane
Attributes
Value parameters
l
the l-th lane
Attributes
Return the i-th element in lane l.
Return the i-th element in lane l.
Value parameters
i
the index position in lane l
l
the l-th lane
Attributes
Insert a new element AT index position i into lane l.
Insert a new element AT index position i into lane l.
Value parameters
elem
the element to be inserted
i
the index position in lane l
l
the l-th lane
Attributes
Remove the element from the end of lane l.
Remove the element from the end of lane l.
Value parameters
l
the l-th lane
Attributes
Remove the element AT index position i from lane l.
Remove the element AT index position i from lane l.
Value parameters
i
the index position in lane l
l
the l-th lane
Attributes