public class CurrentFlowPathBusWalker extends AbstractBusPathWalker
direction
Constructor and Description |
---|
CurrentFlowPathBusWalker() |
Modifier and Type | Method and Description |
---|---|
int |
getIntoBusBranches(Bus bus)
For the bus, calculate no of un-visited branches in the into-direction (walk direction).
|
int |
getOutBusBranches(Bus bus)
For the bus, calculate no of un-visited branches in the out-direction (walk direction).
|
void |
init(Bus bus)
init the bus for the walk
|
boolean |
visit(Bus b)
Visit the bus to do something.
|
needVisit, setWalkDirection
public void init(Bus bus)
IBusPathWalker
init
in interface IBusPathWalker
init
in class AbstractBusPathWalker
public int getIntoBusBranches(Bus bus)
IBusPathWalker
public int getOutBusBranches(Bus bus)
IBusPathWalker
public boolean visit(Bus b)
IBusPathWalker