forked from powerdata/com.powerdata.openpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBus.java
88 lines (75 loc) · 1.68 KB
/
Bus.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.powerdata.openpa;
public class Bus extends Group
{
BusList _list;
public Bus(BusList list, int ndx)
{
super(list, ndx);
_list = list;
}
public Area getArea() throws PAModelException
{
return _list.getArea(_ndx);
}
public void setArea(Area a) throws PAModelException
{
_list.setArea(_ndx, a);
}
public Owner getOwner() throws PAModelException
{
return _list.getOwner(_ndx);
}
public void setOwner(Owner o) throws PAModelException
{
_list.setOwner(_ndx, o);
}
/** get voltage magnitude in kV */
public float getVM() throws PAModelException
{
return _list.getVM(_ndx);
}
/** set voltage magnitude in kV */
public void setVM(float vm) throws PAModelException
{
_list.setVM(_ndx, vm);
}
/** get voltage angle in degrees */
public float getVA() throws PAModelException
{
return _list.getVA(_ndx);
}
/** set voltage angle in degrees */
public void setVA(float va) throws PAModelException
{
_list.setVA(_ndx, va);
}
/** get frequency source priority */
public int getFreqSrcPri() throws PAModelException
{
return _list.getFreqSrcPri(_ndx);
}
public void setFreqSrcPri(int fsp) throws PAModelException
{
_list.setFreqSrcPri(_ndx, fsp);
}
public Island getIsland() throws PAModelException
{
return _list.getIsland(_ndx);
}
public Station getStation() throws PAModelException
{
return _list.getStation(_ndx);
}
public void setStation(Station s) throws PAModelException
{
_list.setStation(_ndx, s);
}
public VoltageLevel getVoltageLevel() throws PAModelException
{
return _list.getVoltageLevel(_ndx);
}
public void setVoltageLevel(VoltageLevel l) throws PAModelException
{
_list.setVoltageLevel(_ndx, l);
}
}