Package jisa.addresses
Class TCPIPAddress
- java.lang.Object
-
- jisa.addresses.TCPIPAddress
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.addresses.Address
Address.AddressInstantiator<A extends Address>
-
-
Constructor Summary
Constructors Constructor Description TCPIPAddress()TCPIPAddress(int board, java.lang.String host, int port)TCPIPAddress(java.lang.String host, int port)TCPIPAddress(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBoard()java.lang.StringgetHost()java.util.Map<java.lang.String,java.lang.Object>getParameters()Returns a map of this address' configurable parameters.intgetPort()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.voidsetBoard(int board)voidsetHost(java.lang.String host)voidsetParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)Set the parameters of this address from a given map.voidsetPort(int port)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
-
getBoard
public int getBoard()
-
setBoard
public void setBoard(int board)
-
getHost
public java.lang.String getHost()
-
setHost
public void setHost(java.lang.String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
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
-
-