|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gridiq.network.Bus
public class Bus
A bus in a power network. Bus attributes have been modelled from the PSAT data format.
This class contains attributes of a bus as well as holds references to
lines
connecting this bus to other buses in the network.
Constructor Summary | |
---|---|
Bus(int id)
Creates a bus with the given id. |
Method Summary | |
---|---|
void |
addFromLine(Line line)
Adds a line from this bus. |
void |
addSupply(Supply supply)
Adds a supply attribute to this bus. |
void |
addToLine(Line line)
Adds a line to this bus. |
int |
getArea()
The area number of this bus. |
Demand |
getDemand()
The demand attributes for this bus. |
java.util.Set<Line> |
getFromLines()
Lines from this bus to other buses. |
int |
getId()
The id of the bus. |
java.lang.String |
getName()
The name of this bus. |
Network |
getNetwork()
The network this bus belongs to. |
PQLoad |
getPQLoad()
The PQ Load attributes of the bus. |
PVGenerator |
getPVGenerator()
The PV Generator attributes of the bus. |
int |
getRegion()
Gets the region number of this bus. |
ShuntAdmittance |
getShuntAdmittance()
The Shunt Admittance attributes for this bus. |
SlackGenerator |
getSlackGenerator()
The Slack Generator attributes of the bus. |
java.util.Set<Supply> |
getSupplies()
The supply attributes for this bus. |
java.util.Set<Line> |
getToLines()
The lines to this bus from other buses. |
double |
getVoltageAmplitudeInitialGuess()
The Voltage amplitude initial guess to set for this bus in p.u. |
double |
getVoltageBase()
The voltage base of this bus in kV. |
double |
getVoltagePhaseInitialGuess()
The Voltage phase initial guess in rad. |
void |
setArea(int area)
Sets the area number of this bus. |
void |
setDemand(Demand demand)
Sets the demand attributes for this bus. |
void |
setId(int id)
Sets the id of this bus. |
void |
setName(java.lang.String name)
Sets the name of this bus. |
void |
setNetwork(Network network)
Sets the network this bus belongs to. |
void |
setPQLoad(PQLoad pqLoad)
Sets the PQ Load attributes of the bus. |
void |
setPVGenerator(PVGenerator pvGenerator)
Sets the PV Generator attributes of the bus. |
void |
setRegion(int region)
Sets the region number of this bus. |
void |
setShuntAdmittance(ShuntAdmittance shuntAdmittance)
Sets the Shunt Admittance attributes for this bus. |
void |
setSlackGenerator(SlackGenerator slackGenerator)
Sets the Slack Generator attributes of the bus. |
void |
setVoltageAmplitudeInitialGuess(double voltageAmplitudeInitialGuess)
Sets the Voltage amplitude initial guess to set for this bus in p.u. |
void |
setVoltageBase(double voltageBase)
Sets the voltage base to set for this bus in kV. |
void |
setVoltagePhaseInitialGuess(double voltagePhaseInitialGuess)
Sets the Voltage phase initial guess in rad. |
java.lang.String |
toString()
A String representation of this bus. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bus(int id)
id
- the id of the bus.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int getId()
public void setId(int id)
id
- The id to set for this bus.public double getVoltageBase()
public void setVoltageBase(double voltageBase)
voltageBase
- The voltage base to set for this bus in kV.public double getVoltageAmplitudeInitialGuess()
public void setVoltageAmplitudeInitialGuess(double voltageAmplitudeInitialGuess)
voltageAmplitudeInitialGuess
- the Voltage amplitude initial guess in p.u.public double getVoltagePhaseInitialGuess()
public void setVoltagePhaseInitialGuess(double voltagePhaseInitialGuess)
voltagePhaseInitialGuess
- The Voltage phase initial guess in rad.public int getArea()
public void setArea(int area)
area
- The area number.public int getRegion()
public void setRegion(int region)
region
- the region number.public ShuntAdmittance getShuntAdmittance()
public void setShuntAdmittance(ShuntAdmittance shuntAdmittance)
shuntAdmittance
- The Shunt Admittance attributes.public Demand getDemand()
public void setDemand(Demand demand)
demand
- The demand attributes for this bus.public java.util.Set<Supply> getSupplies()
public void addSupply(Supply supply)
supply
- the supply attribute instance to add.public PQLoad getPQLoad()
public void setPQLoad(PQLoad pqLoad)
pqLoad
- the PQ Load attributes.public PVGenerator getPVGenerator()
public void setPVGenerator(PVGenerator pvGenerator)
pvGenerator
- The PV Generator attributes to set.public SlackGenerator getSlackGenerator()
public void setSlackGenerator(SlackGenerator slackGenerator)
slackGenerator
- The Slack Generator attributes to set.public java.util.Set<Line> getFromLines()
public void addFromLine(Line line)
line
- The line to add.public java.util.Set<Line> getToLines()
public void addToLine(Line line)
line
- The line to add.public java.lang.String getName()
public void setName(java.lang.String name)
name
- public Network getNetwork()
public void setNetwork(Network network)
network
- The network to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |