-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPhaseShifter.java
More file actions
79 lines (68 loc) · 1.56 KB
/
PhaseShifter.java
File metadata and controls
79 lines (68 loc) · 1.56 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
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 PhaseShifter extends ACBranch
{
PhaseShifterList _list;
public enum ControlMode
{
FixedMW, FixedAngle
}
public PhaseShifter(PhaseShifterList list, int ndx)
{
super(list, ndx);
_list = list;
}
public ControlMode getControlMode() throws PAModelException
{
return _list.getControlMode(_ndx);
}
public void setControlMode(ControlMode m) throws PAModelException
{
_list.setControlMode(_ndx, m);
}
public boolean hasReg() throws PAModelException
{
return _list.hasReg(_ndx);
}
public void setReg(boolean v) throws PAModelException
{
_list.setReg(_ndx, v);
}
public float getMaxAng() throws PAModelException
{
return _list.getMaxAng(_ndx);
}
public void setMaxAng(float v) throws PAModelException
{
_list.setMaxAng(_ndx, v);
}
public float getMinAng() throws PAModelException
{
return _list.getMinAng(_ndx);
}
public void setMinAng(float v) throws PAModelException
{
_list.setMinAng(_ndx, v);
}
public float getRegMaxMW() throws PAModelException
{
return _list.getRegMaxMW(_ndx);
}
public void setRegMaxMW(float mw) throws PAModelException
{
_list.setRegMaxMW(_ndx, mw);
}
public float getRegMinMW() throws PAModelException
{
return _list.getRegMinMW(_ndx);
}
public void setRegMinMW(float mw) throws PAModelException
{
_list.setRegMinMW(_ndx, mw);
}
}