
public enum Segment extends Enum<Segment>
| Modifier and Type | Field and Description |
|---|---|
static String |
AGENT_GROUP |
static Pattern |
FP_PATH_PATTERN |
static String |
GROUP_GROUP |
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.
|
int |
getNX()
Deprecated.
|
int |
getNY()
Deprecated.
|
static String |
getPathPrefix(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Returns standardized path prefix for the specified channel.
|
static String |
getPathPrefix(int[] indices)
Returns standardized path prefix for a channel with given segment indices.
|
static String |
getPathPrefix(String path)
Returns standardized path prefix for the specified channel.
|
static String |
stripPathPrefix(String path)
Strips path prefix indicating the segment location on the focal plane from the given path.
|
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 final String AGENT_GROUP
public static final String GROUP_GROUP
public static final Pattern FP_PATH_PATTERN
public static final int[] N
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 null@Deprecated public int getNX()
@Deprecated public int getNY()
public String toString()
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 - Original or display path in [subsystem/]RXX[/RebX][/SXX[/SegmentXX]]/group 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)
null.indices - Array of length 6: [raftX, raftY, reb = ccdX, ccdY, ampX, ampY].public static String getPathPrefix(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
channel - Data channel.public static String getPathPrefix(String path)
path - Data channel path.public static String stripPathPrefix(String path)
[subsystem/]RXX[/RebX][/SXX[/SegmentXX]]/group format.
The returned string is [subsystem/]group.
If the path does not contain a prefix in the expected format, the entire path is returned.path - Original or display pathCopyright © 2021 LSST. All rights reserved.