-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathOneTermDevListIfc.java
More file actions
42 lines (29 loc) · 1.05 KB
/
OneTermDevListIfc.java
File metadata and controls
42 lines (29 loc) · 1.05 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
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 interface OneTermDevListIfc<T extends OneTermDev> extends InServiceList<T>,OneTermBaseList<T>
{
void setBus(int ndx, Bus b) throws PAModelException;
Bus[] getBus() throws PAModelException;
void setBus(Bus[] b) throws PAModelException;
float getP(int ndx) throws PAModelException;
void setP(int ndx, float p) throws PAModelException;
float[] getP() throws PAModelException;
void setP(float[] p) throws PAModelException;
float getQ(int ndx) throws PAModelException;
void setQ(int ndx, float q) throws PAModelException;
float[] getQ() throws PAModelException;
void setQ(float[] q) throws PAModelException;
default public int[] getBusIndexes() throws PAModelException
{
int n = size();
int[] rv = new int[n];
for(int i=0; i < n; ++i)
rv[i] = getBus(i).getIndex();
return rv;
}
}