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 int
getBoardNumber()
java.util.Map<java.lang.String,java.lang.Object>
getParameters()
Returns a map of this address' configurable parameters.int
getPrimaryAddress()
int
getSecondaryAddress()
java.lang.String
getTypeName()
Returns a textual representation of this address' type.java.lang.String
getVISAString()
Returns the standard VISA text representation of this address.void
parseString(java.lang.String text)
Parses a text representation of this type of address, setting its parameters based on those in the text.void
setBoardNumber(int boardNumber)
void
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Set the parameters of this address from a given map.void
setPrimaryAddress(int primaryAddress)
void
setSecondaryAddress(int secondaryAddress)
java.lang.String
toString()
-
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:Address
Returns a textual representation of this address' type.- Specified by:
getTypeName
in interfaceAddress
- Returns:
- Type of address
-
getVISAString
public java.lang.String getVISAString()
Description copied from interface:Address
Returns the standard VISA text representation of this address.- Specified by:
getVISAString
in interfaceAddress
- Returns:
- VISA text representation
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Description copied from interface:Address
Returns a map of this address' configurable parameters.- Specified by:
getParameters
in interfaceAddress
- Returns:
- Map of parameters
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Description copied from interface:Address
Set the parameters of this address from a given map.- Specified by:
setParameters
in interfaceAddress
- Parameters:
parameters
- Map of parameters to set
-
parseString
public void parseString(java.lang.String text) throws InvalidAddressFormatException
Description copied from interface:Address
Parses a text representation of this type of address, setting its parameters based on those in the text.- Specified by:
parseString
in 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:
toString
in classjava.lang.Object
-
-