public class Filter extends Object implements org.lsst.ccs.UsesSubsystem
| Modifier and Type | Field and Description |
|---|---|
static String |
SOCKET_NAME |
| Constructor and Description |
|---|
Filter(int filterID,
double weight,
String socketName)
Build a filter with an ID and a weight and a socketName.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFilterID()
Returns filterID as Integer
|
FcsEnumerations.FilterLocation |
getFilterLocation()
Returns filter location
|
String |
getSocketName() |
double |
getWeight()
return filter weight
|
void |
initializeFilterLocation()
This method is called by FilterLocator during INITIALIZATION to update field filterLocation.
|
boolean |
isOnAutoChanger() |
boolean |
isOnCarousel() |
boolean |
isOut() |
boolean |
isUnknown() |
void |
publishData()
Creates an object StatusDataPublishedByFilter and publishes it on the
Status Bus for trending data base and GUIs.
|
void |
putFilterOnSocket(String socketName)
This filter is now on carousel in socket given by its name.
|
void |
removeFromCarousel()
This method is call by the CarouselSocket when the filter is not seen
anymore by the filter presence sensor at STANDBY position.
|
void |
setFilterLocation(FcsEnumerations.FilterLocation filterLocation)
Set a new location and publishes data.
|
void |
setSocketName(String socketName)
To be used by end user to change the value stored in the Configuration system.
|
String |
toString() |
public static final String SOCKET_NAME
public Filter(int filterID,
double weight,
String socketName)
filterID - weight - socketName - public void initializeFilterLocation()
@Command(type=QUERY,
level=0,
description="Returns true if filter is held by the carousel.")
public boolean isOnCarousel()
@Command(type=QUERY,
level=0,
description="Returns true if filter is held by autochanger.")
public boolean isOnAutoChanger()
@Command(type=QUERY,
level=0,
description="Returns true if filter is out of camera.")
public boolean isOut()
@Command(type=QUERY,
level=0,
description="Returns true if filter location is UNKNOWN.")
public boolean isUnknown()
@Command(type=QUERY,
level=0,
description="Returns filter location.")
public FcsEnumerations.FilterLocation getFilterLocation()
public void setFilterLocation(FcsEnumerations.FilterLocation filterLocation)
filterLocation - @Command(type=QUERY,
level=0,
description="Returns filter id.")
public int getFilterID()
public double getWeight()
public String getSocketName()
@ConfigurationParameterChanger public void setSocketName(String socketName)
socketName - public void putFilterOnSocket(String socketName)
socketName - public void removeFromCarousel()
public void publishData()
Copyright © 2016 LSST. All rights reserved.