
public class Template extends Object implements Serializable, Comparable<Template>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Template other) |
boolean |
equals(Object obj) |
static Template |
fromString(String string)
Constructs a template corresponding to the specified String representation.
|
String |
getAgent() |
static String |
getAgent(String encodedTemplate) |
boolean |
hasAgent() |
int |
hashCode() |
Template |
stripAgent() |
String |
toString()
Produces a String representation of this template.
|
static Template |
valueOf(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
Constructs a template corresponding to the specified channel.
|
static Template |
valueOf(String path)
Constructs a template corresponding to the specified channel path.
|
public String getAgent()
public boolean hasAgent()
public Template stripAgent()
public static Template valueOf(org.lsst.ccs.gconsole.services.aggregator.AgentChannel channel)
channel - Data channel.null if the supplied channel does not belong to a location on the focal plane.public static Template valueOf(String path)
path - Data channel path.null if the supplied path does not correspond to a location on the focal plane.public static Template fromString(String string)
string - String representation created by toString() method.IllegalArgumentException - if the specified String cannot be converted to a template.public String toString()
Template
by calling valueOf(String string) method.public int compareTo(Template other)
compareTo in interface Comparable<Template>Copyright © 2021 LSST. All rights reserved.