Rev 1564 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1541 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | import java.io.IOException; |
||
4 | |||
1566 | - | 5 | import dongfang.mkt.RequestFrameVisitor; |
1541 | - | 6 | |
1566 | - | 7 | |
1541 | - | 8 | public class MotorTestRequestFrame extends RequestFrame { |
9 | int[] motorValues = new int[16]; |
||
10 | |||
11 | MotorTestRequestFrame(int address) { |
||
12 | super(address); |
||
13 | } |
||
14 | |||
15 | @Override |
||
16 | public void accept(RequestFrameVisitor o) throws IOException { |
||
17 | o.visit(this); |
||
18 | } |
||
19 | |||
20 | public void setMotorValue(int index, int value) { |
||
21 | motorValues[index] = value; |
||
22 | } |
||
23 | |||
24 | public int[] getMotorValues() { |
||
25 | return motorValues; |
||
26 | } |
||
27 | } |