Class SearchStateFrequency
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.SearchStateFrequency
Search state frequency
-
Constructor Summary
ConstructorsConstructorDescriptionSearchStateFrequency(AuthorizationInformation authorizationInformation, int stateId, double frequency) Constructs a requestSearchStateFrequency(AuthorizationInformation authorizationInformation, int stateId, double frequency, String tone) Constructs the request -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int stateId, double frequency) Creates the request envelopestatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, int stateId, double frequency, String tone) Creates the request envelopedoubleFrequency to search forFrequency parameter as sent to the service: MHz rounded to the nearest Hz, without floating point artifacts, so a frequency computed from Hz, e.g.intState idgetTone()Tone (PL) on the channelvoidsetFrequency(double frequency) Search frequencyvoidsetStateId(int stateId) Sets the state idvoidSpecifies a tone to search forMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
SearchStateFrequency
public SearchStateFrequency(AuthorizationInformation authorizationInformation, int stateId, double frequency, String tone) Constructs the request- Parameters:
authorizationInformation- for the requeststateId- to search forfrequency- to search for in MHztone- PL tone to search for
-
SearchStateFrequency
public SearchStateFrequency(AuthorizationInformation authorizationInformation, int stateId, double frequency) Constructs a request- Parameters:
authorizationInformation- for the requeststateId- to search forfrequency- to search for in MHz
-
-
Method Details
-
getStateId
public int getStateId()State id- Returns:
- id
-
setStateId
public void setStateId(int stateId) Sets the state id- Parameters:
stateId- to query
-
getFrequency
public double getFrequency()Frequency to search for- Returns:
- frequency in MHz
-
getFrequencyText
Frequency parameter as sent to the service: MHz rounded to the nearest Hz, without floating point artifacts, so a frequency computed from Hz, e.g. hz / 1E6, matches the database value.- Returns:
- frequency text in MHz
-
setFrequency
public void setFrequency(double frequency) Search frequency- Parameters:
frequency- in MHz
-
getTone
-
setTone
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int stateId, double frequency) Creates the request envelope- Parameters:
authorizationInformation- credentialsstateId- to queryfrequency- in MHz- Returns:
- request
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, int stateId, double frequency, String tone) Creates the request envelope- Parameters:
authorizationInformation- credentialsstateId- to queryfrequency- in MHztone- PL- Returns:
- request
-