forked from powerdata/com.powerdata.openpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadList.java
31 lines (28 loc) · 1.06 KB
/
LoadList.java
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
package com.powerdata.openpa;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Set;
import com.powerdata.openpa.impl.EmptyLists;
public interface LoadList extends OneTermDevListIfc<Load>
{
static LoadList emptyList() {return EmptyLists.EMPTY_LOADS;}
float getMaxP(int ndx) throws PAModelException;
void setMaxP(int ndx, float mw) throws PAModelException;
float[] getMaxP() throws PAModelException;
void setMaxP(float[] mw) throws PAModelException;
float getMaxQ(int ndx) throws PAModelException;
void setMaxQ(int ndx, float mvar) throws PAModelException;
float[] getMaxQ() throws PAModelException;
void setMaxQ(float[] mvar) throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet
.copyOf(Arrays.asList(new ColumnMeta[] { ColumnMeta.LoadBUS,
ColumnMeta.LoadID, ColumnMeta.LoadNAME, ColumnMeta.LoadOOS,
ColumnMeta.LoadP, ColumnMeta.LoadPMAX, ColumnMeta.LoadQ,
ColumnMeta.LoadQMAX }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override default ListMetaType getListMeta() {return ListMetaType.Line;}
}