blob: 7b7b1a27bee349cffe06a120d6df7643070a0cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
package com.smartdevicelink.proxy.rpc;
import java.util.Hashtable;
import com.smartdevicelink.proxy.RPCRequest;
import com.smartdevicelink.proxy.constants.Names;
/**
* This RPC allows to request diagnostic module trouble codes from a certain
* vehicle module
* <p>
* Function Group: ProprietaryData
* <p>
* <b>HMILevel needs to be FULL, LIMITED or BACKGROUND</b>
* <p>
*/
public class GetDTCs extends RPCRequest {
/**
* Constructs a new GetDTCs object
*/
public GetDTCs() {
super("GetDTCs");
}
/**
* Constructs a new GetDTCs object indicated by the Hashtable parameter
* <p>
*
* @param hash
* The Hashtable to use
*/
public GetDTCs(Hashtable hash) {
super(hash);
}
/**
* Sets a name of the module to receive the DTC form
*
* @param ecuName
* an Integer value representing a name of the module to receive
* the DTC form
* <p>
* <b>Notes: </b>Minvalue:0; Maxvalue:65535
*/
public void setEcuName(Integer ecuName) {
if (ecuName != null) {
parameters.put(Names.ecuName, ecuName);
} else {
parameters.remove(Names.ecuName);
}
}
/**
* Gets a name of the module to receive the DTC form
*
* @return Integer -an Integer value representing a name of the module to
* receive the DTC form
*/
public Integer getEcuName() {
return (Integer) parameters.get(Names.ecuName);
}
public void setDtcMask(Integer dtcMask) {
if (dtcMask != null) {
parameters.put(Names.dtcMask, dtcMask);
} else {
parameters.remove(Names.dtcMask);
}
}
public Integer getDtcMask() {
return (Integer) parameters.get(Names.dtcMask);
}
}
|