public class Location extends Object implements Comparable<Location>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Location.LocationType |
| Constructor and Description |
|---|
Location(int index)
Create a location, based on the DAQ index.
|
Location(int bay,
int board)
Create location from bay number and board number
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Location o) |
boolean |
equals(Object obj) |
byte |
getBay() |
byte |
getBoard() |
String |
getBoardName() |
String |
getRaftName() |
String |
getSensorName(int index) |
int |
hashCode() |
int |
index()
Get the index for this location, as used by the DAQ
|
static Location |
of(String location)
Create location from string
|
String |
toString() |
Location.LocationType |
type()
The source type for this location
|
public Location(int index)
index - The DAQ location index.public Location(int bay,
int board)
bay - Bay (e.g.\ 22, 10, 04 etc)board - Board (0-2)public static Location of(String location)
location - String representation of location, of form Rnn/Rebmpublic Location.LocationType type()
public int index()
public byte getBay()
public byte getBoard()
public String getRaftName()
public String getBoardName()
public String getSensorName(int index)
public int compareTo(Location o)
compareTo in interface Comparable<Location>Copyright © 2022 LSST. All rights reserved.