Package jisa.addresses
Class GPIBAddress
- java.lang.Object
-
- jisa.addresses.GPIBAddress
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.addresses.Address
Address.AddressInstantiator<A extends Address>
-
-
Constructor Summary
Constructors Constructor Description GPIBAddress()GPIBAddress(int primaryAddress)GPIBAddress(int boardNumber, int primaryAddress)GPIBAddress(int boardNumber, int primaryAddress, int secondaryAddress)GPIBAddress(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBoardNumber()java.util.Map<java.lang.String,java.lang.Object>getParameters()Returns a map of this address' configurable parameters.intgetPrimaryAddress()intgetSecondaryAddress()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.voidsetBoardNumber(int boardNumber)voidsetParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)Set the parameters of this address from a given map.voidsetPrimaryAddress(int primaryAddress)voidsetSecondaryAddress(int secondaryAddress)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
-
-
-
-
Constructor Detail
-
GPIBAddress
public GPIBAddress()
-
GPIBAddress
public GPIBAddress(int boardNumber, int primaryAddress, int secondaryAddress)
-
GPIBAddress
public GPIBAddress(int boardNumber, int primaryAddress)
-
GPIBAddress
public GPIBAddress(int primaryAddress)
-
GPIBAddress
public GPIBAddress(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
-
Method Detail
-
getBoardNumber
public int getBoardNumber()
-
getPrimaryAddress
public int getPrimaryAddress()
-
getSecondaryAddress
public int getSecondaryAddress()
-
setBoardNumber
public void setBoardNumber(int boardNumber)
-
setPrimaryAddress
public void setPrimaryAddress(int primaryAddress)
-
setSecondaryAddress
public void setSecondaryAddress(int secondaryAddress)
-
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
-
-