forked from powerdata/com.powerdata.openpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BusList.java
91 lines (57 loc) · 2.29 KB
/
BusList.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
89
90
91
package com.powerdata.openpa;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Set;
import com.powerdata.openpa.impl.EmptyLists;
/**
* List of Buses.
*
* @author [email protected]
*
*/
public interface BusList extends GroupListIfc<Bus>
{
static BusList emptyList() {return EmptyLists.EMPTY_BUSES;}
float getVM(int ndx) throws PAModelException;
void setVM(int ndx, float vm) throws PAModelException;
float[] getVM() throws PAModelException;
void setVM(float[] vm) throws PAModelException;
float getVA(int ndx) throws PAModelException;
void setVA(int ndx, float va) throws PAModelException;
float[] getVA() throws PAModelException;
void setVA(float[] va) throws PAModelException;
int getFreqSrcPri(int ndx) throws PAModelException;
void setFreqSrcPri(int ndx, int fsp) throws PAModelException;
int[] getFreqSrcPri() throws PAModelException;
void setFreqSrcPri(int[] fsp) throws PAModelException;
Island getIsland(int ndx) throws PAModelException;
Area getArea(int ndx) throws PAModelException;
void setArea(int ndx, Area a) throws PAModelException;
Area[] getArea() throws PAModelException;
void setArea(Area[] a) throws PAModelException;
Station getStation(int ndx) throws PAModelException;
void setStation(int ndx, Station s) throws PAModelException;
Station[] getStation() throws PAModelException;
void setStation(Station[] s) throws PAModelException;
Owner getOwner(int ndx) throws PAModelException;
void setOwner(int ndx, Owner o) throws PAModelException;
Owner[] getOwner() throws PAModelException;
void setOwner(Owner[] o) throws PAModelException;
VoltageLevel getVoltageLevel(int ndx) throws PAModelException;
void setVoltageLevel(int ndx, VoltageLevel l) throws PAModelException;
VoltageLevel[] getVoltageLevel() throws PAModelException;
void setVoltageLevel(VoltageLevel[] l) throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet.copyOf(Arrays
.asList(new ColumnMeta[] { ColumnMeta.BusAREA,
ColumnMeta.BusFREQSRCPRI, ColumnMeta.BusID,
ColumnMeta.BusNAME, ColumnMeta.BusOWNER,
ColumnMeta.BusSTATION, ColumnMeta.BusVA,
ColumnMeta.BusVLEV, ColumnMeta.BusVM }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override
default ListMetaType getListMeta() {return ListMetaType.Bus;}
}