Class Location
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.scan.event.Location
- All Implemented Interfaces:
INameable
A location is a json object for notifying over JMS
the value of an IScannable. We do not use IPosition
directly because this does not have all the information
required. A location may be a transient state which a
motor is moving through or a notifcation of an intent
to move. It can be thought of as a PositionEvent
encapsulated in a single JSON object and with context
information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMust match method names in IPositionListener as reflection used on the value to call the correct method on the listener. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetLevel()getType()inthashCode()voidsetLevel(int level) voidsetLevelNames(List<String> levelNames) voidsetPosition(IPosition position) voidsetType(Location.LocationType type) toString()Methods inherited from class org.eclipse.scanning.api.AbstractNameable
getName, setName
-
Constructor Details
-
Location
public Location() -
Location
-
-
Method Details
-
getType
-
setType
-
getPosition
-
setPosition
-
getLevel
public int getLevel() -
setLevel
public void setLevel(int level) -
getLevelNames
-
setLevelNames
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractNameable
-
equals
- Overrides:
equalsin classAbstractNameable
-
toString
- Overrides:
toStringin classAbstractNameable
-