-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathGenList.java
More file actions
128 lines (79 loc) · 3.34 KB
/
GenList.java
File metadata and controls
128 lines (79 loc) · 3.34 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package com.powerdata.openpa;
/*
* Copyright (c) 2016, PowerData Corporation, Incremental Systems Corporation
* All rights reserved.
* Licensed under the BSD-3 Clause License.
* See full license at https://powerdata.github.io/openpa/LICENSE.md
*/
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Set;
import com.powerdata.openpa.Gen.Mode;
import com.powerdata.openpa.Gen.Type;
import com.powerdata.openpa.impl.EmptyLists;
public interface GenList extends OneTermDevListIfc<Gen>
{
static GenList emptyList() {return EmptyLists.EMPTY_GENS;}
Type getType(int ndx) throws PAModelException;
void setType(int ndx, Type t) throws PAModelException;
Type[] getType() throws PAModelException;
void setType(Type[] t) throws PAModelException;
Mode getMode(int ndx) throws PAModelException;
void setMode(int ndx, Mode m)throws PAModelException;
Mode[] getMode()throws PAModelException;
void setMode(Mode[] m)throws PAModelException;
float getOpMinP(int ndx)throws PAModelException;
void setOpMinP(int ndx, float mw)throws PAModelException;
float[] getOpMinP()throws PAModelException;
void setOpMinP(float[] mw)throws PAModelException;
float getOpMaxP(int ndx)throws PAModelException;
void setOpMaxP(int ndx, float mw)throws PAModelException;
float[] getOpMaxP()throws PAModelException;
void setOpMaxP(float[] mw)throws PAModelException;
float getMinQ(int ndx)throws PAModelException;
void setMinQ(int ndx, float mvar)throws PAModelException;
float[] getMinQ()throws PAModelException;
void setMinQ(float[] mvar)throws PAModelException;
float getMaxQ(int ndx)throws PAModelException;
void setMaxQ(int ndx, float mvar)throws PAModelException;
float[] getMaxQ()throws PAModelException;
void setMaxQ(float[] mvar)throws PAModelException;
float getPS(int ndx)throws PAModelException;
void setPS(int ndx, float mw)throws PAModelException;
float[] getPS()throws PAModelException;
void setPS(float[] mw)throws PAModelException;
float getQS(int ndx)throws PAModelException;
void setQS(int ndx, float mvar)throws PAModelException;
float[] getQS()throws PAModelException;
void setQS(float[] mvar)throws PAModelException;
boolean isRegKV(int ndx)throws PAModelException;
void setRegKV(int ndx, boolean reg)throws PAModelException;
boolean[] isRegKV()throws PAModelException;
void setRegKV(boolean[] reg)throws PAModelException;
float getVS(int ndx)throws PAModelException;
void setVS(int ndx, float kv)throws PAModelException;
float[] getVS()throws PAModelException;
void setVS(float[] kv)throws PAModelException;
void setRegBus(int ndx, Bus b)throws PAModelException;
Bus getRegBus(int ndx) throws PAModelException;
Bus[] getRegBus()throws PAModelException;
void setRegBus(Bus[] b)throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet.copyOf(Arrays
.asList(new ColumnMeta[] { ColumnMeta.GenAVR, ColumnMeta.GenBUS,
ColumnMeta.GenID, ColumnMeta.GenMAXQ, ColumnMeta.GenMINQ,
ColumnMeta.GenMODE, ColumnMeta.GenNAME, ColumnMeta.GenINSVC,
ColumnMeta.GenOPMAXP, ColumnMeta.GenOPMINP,
ColumnMeta.GenP, ColumnMeta.GenPS, ColumnMeta.GenQ,
ColumnMeta.GenQS, ColumnMeta.GenREGBUS, ColumnMeta.GenTYPE,
ColumnMeta.GenVS }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override
default ListMetaType getListMeta()
{
return ListMetaType.Gen;
}
}