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, mainpublic boolean ensureCapacity(int maxBusNdx,
int branchCount)
LinkNetensureCapacity in class LinkNetmaxBusNdx - Maximum bus number to be used.branchCount - Maximum number of branches.public int getGroup(int bus)
public LinkNet.GroupMap findGroupMap()
findGroupMap in class LinkNetpublic int addBranch(int fromBusNdx,
int toBusNdx)
LinkNetpublic boolean eliminateBranch(int brofs)
LinkNeteliminateBranch in class LinkNetpublic boolean restoreBranch(int brofs)
restoreBranch in class LinkNetpublic int addBranchEliminated(int fromBusNdx,
int toBusNdx)
fromBusNdx - toBusNdx -