综合管理平台数据库数据模拟程序
Administrator
2021-03-25 d8af6aa85ab05ce4fd1e0685766531e50c114ab4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.mode;
 
import java.util.Date;
 
public class Motor_State {
    public int device_id;// 'É豸id',
    public Date record_time;//'¼Ç¼ʱ¼ä',
    public float motor_curr = 99.6f;//'µç»úµçÁ÷',
    public float motor_power = 50;//'µç»ú¹¦ÂÊ',
    public float motor_speed = 0;//'µç»úתËÙ',
    public float motor_vol = 300;//'µç»úµçѹ',
    public float motor_out_tmp = 32;//'µç»ú³ö¿ÚζÈ',
    public float motor_into_tmp = 65;//'µç»ú½ø¿ÚζÈ',
    public float motor_torque = 1000;//'µç»úת¾Ø',
    public int motor_state = 1;//'µç»ú״̬',
    
    public Motor_State(int device_id){
        this.device_id = device_id;
    }
    
    public int getDevice_id() {
        return device_id;
    }
    public Date getRecord_time() {
        return record_time;
    }
    public float getMotor_curr() {
        return motor_curr;
    }
    public float getMotor_power() {
        return motor_power;
    }
    public float getMotor_speed() {
        return motor_speed;
    }
    public float getMotor_vol() {
        return motor_vol;
    }
    public float getMotor_out_tmp() {
        return motor_out_tmp;
    }
    public float getMotor_into_tmp() {
        return motor_into_tmp;
    }
    public float getMotor_torque() {
        return motor_torque;
    }
    public int getMotor_state() {
        return motor_state;
    }
    public void setDevice_id(int device_id) {
        this.device_id = device_id;
    }
    public void setRecord_time(Date record_time) {
        this.record_time = record_time;
    }
    public void setMotor_curr(float motor_curr) {
        this.motor_curr = motor_curr;
    }
    public void setMotor_power(float motor_power) {
        this.motor_power = motor_power;
    }
    public void setMotor_speed(float motor_speed) {
        this.motor_speed = motor_speed;
    }
    public void setMotor_vol(float motor_vol) {
        this.motor_vol = motor_vol;
    }
    public void setMotor_out_tmp(float motor_out_tmp) {
        this.motor_out_tmp = motor_out_tmp;
    }
    public void setMotor_into_tmp(float motor_into_tmp) {
        this.motor_into_tmp = motor_into_tmp;
    }
    public void setMotor_torque(float motor_torque) {
        this.motor_torque = motor_torque;
    }
    public void setMotor_state(int motor_state) {
        this.motor_state = motor_state;
    }
    
    
    @Override
    public String toString() {
        return "Motor_State [device_id=" + device_id + ", record_time=" + record_time + ", motor_curr=" + motor_curr
                + ", motor_power=" + motor_power + ", motor_speed=" + motor_speed + ", motor_vol=" + motor_vol
                + ", motor_out_tmp=" + motor_out_tmp + ", motor_into_tmp=" + motor_into_tmp + ", motor_torque="
                + motor_torque + ", motor_state=" + motor_state + "]";
    }
}