public class ConcurrentGroupLinkNet extends LinkNet
LinkNet.GroupMap
Constructor and Description |
---|
ConcurrentGroupLinkNet() |
Modifier and Type | Method and Description |
---|---|
int |
addBranch(int fromBusNdx,
int toBusNdx)
Add a branch.
|
int |
addBranchEliminated(int fromBusNdx,
int toBusNdx)
Add an eliminated branch which handles all the logic, but doesn't need to merge and then back it out
|
boolean |
eliminateBranch(int brofs)
Remove a branch from service.
|
boolean |
ensureCapacity(int maxBusNdx,
int branchCount)
Ensure there is enough storage for the number of buses and branches
specified.
|
LinkNet.GroupMap |
findGroupMap() |
int |
getGroup(int bus) |
boolean |
restoreBranch(int brofs) |
addBus, addBuses, addBuses, findBranch, findBranchElim, findBranches, findBranchesElim, findBuses, findConnections, findElimConnections, findGroups, forEachInGroup, getAllBuses, getBranchCount, getBusesForBranch, getConnectionCount, getConnectionCounts, getElimConnectionCounts, getMaxBusNdx, main
public boolean ensureCapacity(int maxBusNdx, int branchCount)
LinkNet
ensureCapacity
in class LinkNet
maxBusNdx
- Maximum bus number to be used.branchCount
- Maximum number of branches.public int getGroup(int bus)
public LinkNet.GroupMap findGroupMap()
findGroupMap
in class LinkNet
public int addBranch(int fromBusNdx, int toBusNdx)
LinkNet
public boolean eliminateBranch(int brofs)
LinkNet
eliminateBranch
in class LinkNet
public boolean restoreBranch(int brofs)
restoreBranch
in class LinkNet
public int addBranchEliminated(int fromBusNdx, int toBusNdx)
fromBusNdx
- toBusNdx
-