Package jisa.addresses
Class ModbusAddress
- java.lang.Object
-
- jisa.addresses.ModbusAddress
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.addresses.Address
Address.AddressInstantiator<A extends Address>
-
-
Constructor Summary
Constructors Constructor Description ModbusAddress()ModbusAddress(java.lang.String portName, int address)ModbusAddress(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddress()java.util.Map<java.lang.String,java.lang.Object>getParameters()Returns a map of this address' configurable parameters.java.lang.StringgetPortName()java.lang.StringgetTypeName()Returns a textual representation of this address' type.java.lang.StringgetVISAString()Returns the standard VISA text representation of this address.voidparseString(java.lang.String text)Parses a text representation of this type of address, setting its parameters based on those in the text.voidsetAddress(int address)voidsetParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)Set the parameters of this address from a given map.voidsetPortName(java.lang.String portName)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jisa.addresses.Address
getJISAString
-
-
-
-
Method Detail
-
getPortName
public java.lang.String getPortName()
-
setPortName
public void setPortName(java.lang.String portName)
-
getAddress
public int getAddress()
-
setAddress
public void setAddress(int address)
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:AddressReturns a textual representation of this address' type.- Specified by:
getTypeNamein interfaceAddress- Returns:
- Type of address
-
getVISAString
public java.lang.String getVISAString()
Description copied from interface:AddressReturns the standard VISA text representation of this address.- Specified by:
getVISAStringin interfaceAddress- Returns:
- VISA text representation
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Description copied from interface:AddressReturns a map of this address' configurable parameters.- Specified by:
getParametersin interfaceAddress- Returns:
- Map of parameters
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface:AddressSet the parameters of this address from a given map.- Specified by:
setParametersin interfaceAddress- Parameters:
parameters- Map of parameters to set
-
parseString
public void parseString(java.lang.String text) throws InvalidAddressFormatExceptionDescription copied from interface:AddressParses a text representation of this type of address, setting its parameters based on those in the text.- Specified by:
parseStringin interfaceAddress- Parameters:
text- VISA/JISA text representation- Throws:
InvalidAddressFormatException- If the text representation is not formatted properly for this address type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-