Blame |
Last modification |
View Log
| RSS feed
package dongfang.mkt.frames;
public class ReadVariablesResponseFrame
extends ResponseFrame
{
private int[] variables
;
public ReadVariablesResponseFrame
(int address
) {
super(address
);
}
@
Override
public boolean isResponseTo
(RequestFrame r
) {
return r
instanceof ReadVariablesRequestFrame
;
}
public int[] getVariables
() {
return variables
;
}
public void setVariables
(int[] variables
) {
this.
variables = variables
;
}
public String toString
() {
String result = getClass
().
getSimpleName() +
": ";
if (variables
!=
null) {
for (int i=
0; i
<variables.
length; i++
) {
result += i +
"->" + variables
[i
];
if (i
<variables.
length-
1)
result +=
", ";
}
}
return result
;
}
}