Blame |
Last modification |
View Log
| RSS feed
package dongfang.mkt.frames;
public class VariablesResponseFrame
extends ResponseFrame
{
private int[] variables
;
public VariablesResponseFrame
(int address
) {
super(address
);
}
@
Override
public boolean isResponseTo
(RequestFrame r
) {
return r
instanceof VariablesRequestFrame
;
}
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
;
}
}