Package xal.app.virtualaccelerator
Class ReadbackSetRecord
- java.lang.Object
-
- xal.app.virtualaccelerator.ReadbackSetRecord
-
public class ReadbackSetRecord extends Object
record to cache and synchronize readback and setpoint values
-
-
Constructor Summary
Constructors Constructor Description ReadbackSetRecord(xal.smf.AcceleratorNode node, xal.ca.Channel readChannel, xal.ca.Channel setChannel)ConstructorReadbackSetRecord(xal.smf.AcceleratorNode node, xal.ca.Channel firstChannel, xal.ca.Channel secondChannel, double conversionFactor)Constructor for conversion factor It is assumed that the first channel holds the real initial configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetLastReadback()get the last readback valuedoublegetLastSetpoint()get the last setpoint valuexal.smf.AcceleratorNodegetNode()get the accelerator nodexal.ca.ChannelgetReadbackChannel()get the readback channelxal.ca.ChannelgetSetpointChannel()get the setpoint channelvoidsetLastSetpoint(Double value)voidupdateConversion()When two channel sets are connected through a conversion factor, update these (do this before updating readback/set records)voidupdateReadback(double basisValue, Map<xal.ca.Channel,Double> noiseMap, Map<xal.ca.Channel,Double> staticErrorMap, xal.ca.PutListener listener)update the readback from the setpoint, noise and static errorvoidupdateReadback(Map<xal.ca.Channel,Double> noiseMap, Map<xal.ca.Channel,Double> staticErrorMap, xal.ca.PutListener listener)update the readback from the setpoint, noise and static error
-
-
-
Constructor Detail
-
ReadbackSetRecord
public ReadbackSetRecord(xal.smf.AcceleratorNode node, xal.ca.Channel readChannel, xal.ca.Channel setChannel)Constructor
-
ReadbackSetRecord
public ReadbackSetRecord(xal.smf.AcceleratorNode node, xal.ca.Channel firstChannel, xal.ca.Channel secondChannel, double conversionFactor)Constructor for conversion factor It is assumed that the first channel holds the real initial configuration
-
-
Method Detail
-
getNode
public xal.smf.AcceleratorNode getNode()
get the accelerator node
-
getReadbackChannel
public xal.ca.Channel getReadbackChannel()
get the readback channel
-
getSetpointChannel
public xal.ca.Channel getSetpointChannel()
get the setpoint channel
-
getLastSetpoint
public double getLastSetpoint()
get the last setpoint value
-
getLastReadback
public double getLastReadback()
get the last readback value
-
setLastSetpoint
public void setLastSetpoint(Double value)
-
updateReadback
public void updateReadback(double basisValue, Map<xal.ca.Channel,Double> noiseMap, Map<xal.ca.Channel,Double> staticErrorMap, xal.ca.PutListener listener) throws Exceptionupdate the readback from the setpoint, noise and static error- Throws:
Exception
-
updateReadback
public void updateReadback(Map<xal.ca.Channel,Double> noiseMap, Map<xal.ca.Channel,Double> staticErrorMap, xal.ca.PutListener listener) throws Exception
update the readback from the setpoint, noise and static error- Throws:
Exception
-
updateConversion
public void updateConversion()
When two channel sets are connected through a conversion factor, update these (do this before updating readback/set records)
-
-