forked from powerdata/com.powerdata.openpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhaseShifterList.java
38 lines (35 loc) · 1.27 KB
/
PhaseShifterList.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
32
33
34
35
36
37
38
package com.powerdata.openpa;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.Set;
import com.powerdata.openpa.PhaseShifter.ControlMode;
import com.powerdata.openpa.impl.EmptyLists;
public interface PhaseShifterList extends ACBranchListIfc<PhaseShifter>
{
static PhaseShifterList emptyList() {return EmptyLists.EMPTY_PHASESHIFTERS;}
ControlMode getControlMode(int ndx) throws PAModelException;
ControlMode[] getControlMode() throws PAModelException;
void setControlMode(int ndx, ControlMode m) throws PAModelException;
void setControlMode(ControlMode[] m) throws PAModelException;
static Set<ColumnMeta> Cols = EnumSet.copyOf(Arrays
.asList(new ColumnMeta[] { ColumnMeta.PhashANG,
ColumnMeta.PhashBMAG, ColumnMeta.PhashBUSFROM,
ColumnMeta.PhashBUSTO, ColumnMeta.PhashCTRLMODE,
ColumnMeta.PhashGMAG, ColumnMeta.PhashID,
ColumnMeta.PhashNAME, ColumnMeta.PhashOOS,
ColumnMeta.PhashPFROM, ColumnMeta.PhashPTO,
ColumnMeta.PhashQFROM, ColumnMeta.PhashQTO,
ColumnMeta.PhashR, ColumnMeta.PhashRATLT,
ColumnMeta.PhashTAPFROM, ColumnMeta.PhashTAPTO,
ColumnMeta.PhashX }));
@Override
default Set<ColumnMeta> getColTypes()
{
return Cols;
}
@Override
default ListMetaType getListMeta()
{
return ListMetaType.PhaseShifter;
}
}