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