
public enum Segment extends Enum<Segment>
| Modifier and Type | Field and Description |
|---|---|
static int[] |
N |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
getIndices(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Computes focal plane segment indices for the given channel, based on attributes.
|
static int[] |
getIndices(String path)
Computes focal plane segment indices for the given path in standard format.
|
String |
getKey()
Returns the attribute key that can be used to retrieve the corresponding segment index value from
DataProviderInfo. |
int |
getNX() |
int |
getNY() |
static String |
getPathPrefix(int[] indices)
Returns standardized path prefix for a channel with given segment indices.
|
abstract int[] |
parseIndices(int[] indices,
String s) |
String |
toString()
Returns string representation of this segment type.
|
static Segment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Segment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Segment RAFT
public static final Segment REB
public static final Segment CCD
public static final Segment AMP
public static Segment[] values()
for (Segment c : Segment.values()) System.out.println(c);
public static Segment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getNX()
public int getNY()
public String getKey()
DataProviderInfo.public String toString()
public abstract int[] parseIndices(int[] indices,
String s)
public static int[] getIndices(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
channel - Data channel.null if the channel does not belong to a valid segment.
Trailing indices will be -1 if there is no corresponding segment at this level, but at least raft indices will have valid non-negative values.public static int[] getIndices(String path)
path - Path in RXX[/RebX][/SXX[/SegmentXX]]/... format.null if the channel does not belong to a valid segment.
Trailing indices will be -1 if there is no corresponding segment at this level, but at least raft indices will have valid non-negative values.public static String getPathPrefix(int[] indices)
indices - Array of length 6: [raftX, raftY, reb = ccdX, ccdY, ampX, ampY].Copyright © 2019 LSST. All rights reserved.