-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathLoad.java
More file actions
43 lines (36 loc) · 848 Bytes
/
Load.java
File metadata and controls
43 lines (36 loc) · 848 Bytes
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
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 Load extends OneTermDev
{
LoadList _list;
public Load(LoadList list, int ndx)
{
super(list, ndx);
_list = list;
}
/** Get Max Load MW */
public float getMaxP() throws PAModelException
{
return _list.getMaxP(_ndx);
}
/** Set Max Load MW */
public void setMaxP(float mw) throws PAModelException
{
_list.setMaxP(_ndx, mw);
}
/** Get Max Load MVAr */
public float getMaxQ() throws PAModelException
{
return _list.getMaxQ(_ndx);
}
/** Set Max Load MVAr */
public void setMaxQ(float mvar) throws PAModelException
{
_list.setMaxQ(_ndx, mvar);
}
}