public class LinkList extends java.util.ArrayList<Link>
| Constructor and Description |
|---|
LinkList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkPriorityWise(Link link)
Insert the link into a linkList sorted according to its priority
|
Block |
getNextMainBlock() |
Link |
getNextMainLink() |
LinkList |
getSortedLinks(Train train,
int nextStnBlock)
NextBLockArray: ArrayList getSortedLinks(Train train, Block block,
double arrivalTime, double deptTime, double startVelocity) 1) The base
cases as in the nextBlockArray has size 0 or 1 it should return the
linkArray or add the only nextBlock and return.
|
public LinkList getSortedLinks(Train train, int nextStnBlock)
Train - block - arrivalTime - deptTime - startVelocity - public void addLinkPriorityWise(Link link)
linkList - link - public Block getNextMainBlock()
public Link getNextMainLink()