public class DistPathBusWalker extends java.lang.Object implements IBusBVisitor
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
statusInfo |
copyright
Constructor and Description |
---|
DistPathBusWalker() |
DistPathBusWalker(java.util.List<java.lang.String> info) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.math3.complex.Complex |
getBranchPowerFlow(Branch branch,
Bus bus)
out-going direction regarding the bus as positive direction.
|
protected org.apache.commons.math3.complex.Complex |
getP(Bus b,
double baseKva)
get bus power, generation as positive direction
|
protected org.apache.commons.math3.complex.Complex |
getVisitedBranchTotalWeight(Bus bus)
out-going direction regarding the bus as positive direction.
|
boolean |
visit(Bus bus)
visit the bus and connected branches, return false if the walk of the bus is not done
|
protected void |
visitBranch(Branch branch,
Bus bus)
Visit the branch to calculate branch active power flow.
|
protected void |
visitBus(Bus bus)
visit the bus and connected branch if necessary for determining branch power flow direction.
|
protected void |
visitUtilityBus(Bus bus)
visit the utility bus, all branches connected should be visited before the
utility bus can be visited
|
public DistPathBusWalker()
public DistPathBusWalker(java.util.List<java.lang.String> info)
public boolean visit(Bus bus)
visit
in interface IBusBVisitor
protected void visitBus(Bus bus)
bus
- protected void visitBranch(Branch branch, Bus bus)
branch
- bus
- protected void visitUtilityBus(Bus bus)
bus
- protected org.apache.commons.math3.complex.Complex getP(Bus b, double baseKva)
net
- baseKva
- protected org.apache.commons.math3.complex.Complex getVisitedBranchTotalWeight(Bus bus)
bus
-