-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathOneTermDev.java
More file actions
54 lines (42 loc) · 1.1 KB
/
OneTermDev.java
File metadata and controls
54 lines (42 loc) · 1.1 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
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 com.powerdata.openpa.OneTermBaseList.OneTermBase;
public class OneTermDev extends InService implements OneTermBase
{
OneTermDevListIfc<? extends OneTermDev> _list;
public OneTermDev(OneTermDevListIfc<? extends OneTermDev> list, int ndx)
{
super(list, ndx);
_list = list;
}
/** Get device active power in MW */
public float getP() throws PAModelException
{
return _list.getP(_ndx);
}
/** Get device reactive power in MVAr */
public float getQ() throws PAModelException
{
return _list.getQ(_ndx);
}
/** Set device active power in MW */
public void setP(float p) throws PAModelException
{
_list.setP(_ndx, p);
}
/** Set device reactive power in MVAr */
public void setQ(float q) throws PAModelException
{
_list.setQ(_ndx, q);
}
@Override
public Bus getBus() throws PAModelException
{
return _list.getBus(_ndx);
}
}