Class ApertureImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.aperture.ApertureImpl
-
-
Constructor Summary
Constructors Constructor Description ApertureImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMarker(java.lang.String name, double pos)voidaddSlice(ApertureSlice newSlice)java.util.List<ApertureSlice>getApertureSlices()java.lang.DoublegetMarkerPos(java.lang.String markerName)java.util.List<java.lang.Double>getMaxValues(JMadPlane plane, boolean aroundTrajectory)get the maximum values for the given planejava.util.List<java.lang.Double>getMinValues(JMadPlane plane, boolean aroundTrajectory)get the minimum values for the given planejava.util.List<java.lang.String>getMissedMarkers()this list will be changed by the reader!java.util.List<java.lang.Double>getSValues()java.util.List<java.lang.Double>getXmaxValues(boolean aroundTrajectory)java.util.List<java.lang.Double>getXminValues(boolean aroundTrajectory)java.util.List<java.lang.Double>getYmaxValues(boolean aroundTrajectory)java.util.List<java.lang.Double>getYminValues(boolean aroundTrajectory)booleanisIndexLoaded()
-
-
-
Method Detail
-
getMaxValues
public java.util.List<java.lang.Double> getMaxValues(JMadPlane plane, boolean aroundTrajectory)
Description copied from interface:Apertureget the maximum values for the given plane- Specified by:
getMaxValuesin interfaceAperture- Parameters:
plane- the plane for which to retrieve the maximum ValuesaroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the maximum values for the given plane
-
getMinValues
public java.util.List<java.lang.Double> getMinValues(JMadPlane plane, boolean aroundTrajectory)
Description copied from interface:Apertureget the minimum values for the given plane- Specified by:
getMinValuesin interfaceAperture- Parameters:
plane- the plane for which to retrieve the minValuesaroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the minimum Values for the given plane
-
getSValues
public java.util.List<java.lang.Double> getSValues()
- Specified by:
getSValuesin interfaceAperture- Returns:
- the s-Positions of the ApertureSequence
-
getXminValues
public java.util.List<java.lang.Double> getXminValues(boolean aroundTrajectory)
- Specified by:
getXminValuesin interfaceAperture- Parameters:
aroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the minimum values in the x-plane
-
getXmaxValues
public java.util.List<java.lang.Double> getXmaxValues(boolean aroundTrajectory)
- Specified by:
getXmaxValuesin interfaceAperture- Parameters:
aroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the maximum values in the x-plane
-
getYminValues
public java.util.List<java.lang.Double> getYminValues(boolean aroundTrajectory)
- Specified by:
getYminValuesin interfaceAperture- Parameters:
aroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the minimum values in the y plane
-
getYmaxValues
public java.util.List<java.lang.Double> getYmaxValues(boolean aroundTrajectory)
- Specified by:
getYmaxValuesin interfaceAperture- Parameters:
aroundTrajectory- iftruethe aperture around the nominal beam trajectory is returned, otherwise the aperture as defined.- Returns:
- the maximum values in the y plane
-
addMarker
public void addMarker(java.lang.String name, double pos)
-
addSlice
public void addSlice(ApertureSlice newSlice)
-
getMissedMarkers
public java.util.List<java.lang.String> getMissedMarkers()
this list will be changed by the reader!- Returns:
- the list of missed markers
-
getMarkerPos
public java.lang.Double getMarkerPos(java.lang.String markerName)
-
getApertureSlices
public java.util.List<ApertureSlice> getApertureSlices()
-
isIndexLoaded
public boolean isIndexLoaded()
-
-