-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSVCList.java
More file actions
81 lines (77 loc) · 3.29 KB
/
SVCList.java
File metadata and controls
81 lines (77 loc) · 3.29 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
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.SVC.SVCState;
import com.powerdata.openpa.impl.EmptyLists;
public interface SVCList extends OneTermDevListIfc<SVC>
{
static SVCList emptyList() {return EmptyLists.EMPTY_SVCS;}
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;
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;
/** get slope (kV/MVAr per-cent on largest magnitude admittance limit) */
float getSlope(int ndx) throws PAModelException;
/** get slope (kV/MVAr per-cent on largest magnitude admittance limit) */
float[] getSlope() throws PAModelException;
/** set slope (kV/MVAr per-cent on largest magnitude admittance limit) */
void setSlope(int ndx, float slope) throws PAModelException;
/** set slope (kV/MVAr per-cent on largest magnitude admittance limit) */
void setSlope(float[] slope) throws PAModelException;
/** get SVC output operating mode */
SVCState getOutputMode(int ndx) throws PAModelException;
/** get SVC output operating mode */
SVCState[] getOutputMode() throws PAModelException;
/** set SVC output operating mode */
void setOutputMode(int ndx, SVCState m) throws PAModelException;
/** set SVC output operating mode */
void setOutputMode(SVCState[] m) throws PAModelException;
/** get MVAr setpoint used if AVR is off */
float getQS(int ndx) throws PAModelException;
/** get MVAr setpoint used if AVR is off */
float[] getQS() throws PAModelException;
/** set MVAr setpoint used if AVR is off */
void setQS(int ndx, float mvar) throws PAModelException;
/** set MVAr setpoint used if AVR is off */
void setQS(float[] mvar) throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet
.copyOf(Arrays.asList(new ColumnMeta[] { ColumnMeta.SvcAVR,
ColumnMeta.SvcBUS, ColumnMeta.SvcID, ColumnMeta.SvcNAME,
ColumnMeta.SvcOMODE, ColumnMeta.SvcINSVC, ColumnMeta.SvcP,
ColumnMeta.SvcQ, ColumnMeta.SvcQMAX, ColumnMeta.SvcQMIN,
ColumnMeta.SvcQS, ColumnMeta.SvcREGBUS,
ColumnMeta.SvcSLOPE, ColumnMeta.SvcVS }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override
default ListMetaType getListMeta()
{
return ListMetaType.SVC;
}
}