-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathSVC.java
More file actions
116 lines (96 loc) · 2.49 KB
/
SVC.java
File metadata and controls
116 lines (96 loc) · 2.49 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
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
*/
public class SVC extends OneTermDev
{
SVCList _list;
public enum SVCState {Off,CapacitorLimit,ReactorLimit,Normal,FixedMVAr;}
public SVC(SVCList list, int ndx)
{
super(list, ndx);
_list = list;
}
/** get minimum MVAr */
public float getMinQ() throws PAModelException
{
return _list.getMinQ(_ndx);
}
/** set minimum MVAr */
public void setMinQ(float mvar) throws PAModelException
{
_list.setMinQ(_ndx, mvar);
}
/** get maximum MVAr */
public float getMaxQ() throws PAModelException
{
return _list.getMaxQ(_ndx);
}
/** set maximum MVAr */
public void setMaxQ(float mvar) throws PAModelException
{
_list.setMaxQ(_ndx, mvar);
}
/** is regulating voltage */
public boolean isRegKV() throws PAModelException
{
return _list.isRegKV(_ndx);
}
/** is regulating voltage */
public void setRegKV(boolean reg) throws PAModelException
{
_list.setRegKV(_ndx, reg);
}
/** voltage setpoint in KV, used if regulating voltage */
public float getVS() throws PAModelException
{
return _list.getVS(_ndx);
}
/** voltage setpoint in KV, used if regulating voltage */
public void setVS(float kv) throws PAModelException
{
_list.setVS(_ndx, kv);
}
/** Bus where voltage is regulated */
public Bus getRegBus() throws PAModelException
{
return _list.getRegBus(_ndx);
}
public void setRegBus(Bus b) throws PAModelException
{
_list.setRegBus(_ndx, b);
}
/** get slope (kV/MVAr per-unit on largest magnitude admittance limit) */
public float getSlope() throws PAModelException
{
return _list.getSlope(_ndx);
}
/** set slope (kV/MVAr per-unit on largest magnitude admittance limit) */
public void setSlope(float slope) throws PAModelException
{
_list.setSlope(_ndx, slope);
}
/** get SVC output operating mode */
public SVCState getOutputMode() throws PAModelException
{
return _list.getOutputMode(_ndx);
}
/** set SVC output operating mode */
public void setOutputMode(SVCState m) throws PAModelException
{
_list.setOutputMode(_ndx, m);
}
/** get MVAr setpoint used if AVR is off */
public float getQS() throws PAModelException
{
return _list.getQS(_ndx);
}
/** set MVAr setpoint used if AVR is off */
public void setQS(float mvar) throws PAModelException
{
_list.setQS(_ndx, mvar);
}
}