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