Subversion Repositories Projects

Rev

Rev 1564 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1564 Rev 1566
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
 
6
public class MotorTestRequestFrame extends RequestFrame {
8
public class MotorTestRequestFrame extends RequestFrame {
7
        int[] motorValues = new int[16];
9
        int[] motorValues = new int[16];
8
 
10
 
9
        MotorTestRequestFrame(int address) {
11
        MotorTestRequestFrame(int address) {
10
                super(address);
12
                super(address);
11
        }
13
        }
12
 
14
 
13
        @Override
15
        @Override
14
        public void accept(RequestFrameVisitor o) throws IOException {
16
        public void accept(RequestFrameVisitor o) throws IOException {
15
                o.visit(this);
17
                o.visit(this);
16
        }
18
        }
17
       
19
       
18
        public void setMotorValue(int index, int value) {
20
        public void setMotorValue(int index, int value) {
19
                motorValues[index] = value;
21
                motorValues[index] = value;
20
        }
22
        }
21
       
23
       
22
        public int[] getMotorValues() {
24
        public int[] getMotorValues() {
23
                return motorValues;
25
                return motorValues;
24
        }
26
        }
25
}
27
}
26
 
28