forked from powerdata/com.powerdata.openpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IslandList.java
29 lines (26 loc) · 922 Bytes
/
IslandList.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
package com.powerdata.openpa;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Set;
import com.powerdata.openpa.impl.EmptyLists;
public interface IslandList extends GroupListIfc<Island>
{
static IslandList emptyList() {return EmptyLists.EMPTY_ISLANDS;}
boolean isEnergized(int ndx) throws PAModelException;
boolean[] isEnergized() throws PAModelException;
float getFreq(int ndx) throws PAModelException;
void setFreq(int ndx, float f) throws PAModelException;
float[] getFreq() throws PAModelException;
void setFreq(float[] f) throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet.copyOf(Arrays
.asList(new ColumnMeta[] { ColumnMeta.IslandEGZSTATE,
ColumnMeta.IslandFREQ, ColumnMeta.IslandID,
ColumnMeta.IslandNAME }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override
default ListMetaType getListMeta(){return ListMetaType.Island;}
}