Package csw.prefix.models
Class Prefix
- java.lang.Object
-
- csw.prefix.models.Prefix
-
- All Implemented Interfaces:
java.io.Serializable,scala.Equals,scala.Product
public class Prefix extends java.lang.Object implements scala.Product, java.io.SerializableA top level key for a parameter set: combination of subsystem and the subsystem's prefix e.g. tcs.filter.wheel, wfos.prog.cloudcover, etc- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Prefix()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Prefixapply(Subsystem subsystem, java.lang.String componentName)A top level key for a parameter set: combination of subsystem and the subsystem's prefix e.g.static Prefixapply(java.lang.String value)Creates a Prefix based on the given value of format tcs.filter.wheel and splits it to have tcs assubsystemand filter.wheel ascomponentNamejava.lang.StringcomponentName()Subsystemsubsystem()java.lang.StringtoString()String representation of prefix e.g.java.lang.Stringvalue()String representation of prefix e.g.
-
-
-
Method Detail
-
apply
public static Prefix apply(java.lang.String value)
Creates a Prefix based on the given value of format tcs.filter.wheel and splits it to have tcs assubsystemand filter.wheel ascomponentName- Parameters:
value- of format tcs.filter.wheel- Returns:
- a Prefix instance
-
apply
public static Prefix apply(Subsystem subsystem, java.lang.String componentName)
A top level key for a parameter set: combination of subsystem and the subsystem's prefix e.g. tcs.filter.wheel, wfos.prog.cloudcover, etc- Parameters:
subsystem- component subsystem - tcs (TCS), wfos (WFOS)componentName- component name - filter.wheel, prog.cloudcover. It is changed to lowercase while constructing the Prefix.- Returns:
- (undocumented)
-
subsystem
public Subsystem subsystem()
-
componentName
public java.lang.String componentName()
-
value
public java.lang.String value()
String representation of prefix e.g. tcs.filter.wheel where tcs is the subsystem name and filter.wheel is the component name- Returns:
- (undocumented)
-
toString
public java.lang.String toString()
String representation of prefix e.g. tcs.filter.wheel where tcs is the subsystem name and filter.wheel is the component name- Overrides:
toStringin classjava.lang.Object- Returns:
- (undocumented)
-
-