wenzee 发表于 2011-11-24 20:17

Java 电机设计程序 连载

本人欲用J设计一个集
1. 电机设计;
2.电磁数据管理;
3.出厂检验数据管理
于一体的企业版系统。

本系统采取 Java语言设, 数据库为 MYsql.
首先是三相异步感应电动机的设计程序。
现以连载的方式呈现。
希望各位大侠指点。

wenzee 发表于 2011-11-24 20:21

既然是电机,就得使用导体. 所以,首先提交 Conductor 类。



/**
* Conductor.java
* @author wenzee
* 本类定义了 Conductor
*/
public class Conductor {
        // Non parameter constructor
        public Conductor() {
               
        }
        // default constructor
        public Conductor(String model, double conductivity, double temperatureCoefficient,
                        double specificHeat, double thermalConductivity) {
                this.setModel(model);
                this.setConductivity(conductivity);
                this.setTemperatureCoefficient(temperatureCoefficient);
                this.setSpecificHeat(specificHeat);
                this.setThermalConductivity(thermalConductivity);
        }
        // constructor based on another Conductor
        public Conductor(Conductor base) {
                this(base.model, base.conductivity, base.temperatureCoefficient,
                                base.specificHeat, base.thermalConductivity );
        }
        /**
       * @return the model
       */
        public String getModel() {
                return model;
        }
        /**
       * @param model the model to set
       */
        public void setModel(String model) {
                this.model = model;
        }

        /**
       * @return the conductivity
       */
        public double getConductivity() {
                return conductivity;
        }
        /**
       * @param conductivity the conductivity to set
       */
        public void setConductivity(double conductivity) {
                this.conductivity = conductivity;
        }

        /**
       * @return the temperatureCoefficient
       */
        public double getTemperatureCoefficient() {
                return temperatureCoefficient;
        }
        /**
       * @param temperatureCoefficient the temperatureCoefficient to set
       */
        public void setTemperatureCoefficient(double temperatureCoefficient) {
                this.temperatureCoefficient = temperatureCoefficient;
        }

        /**
       * @return the density
       */
        public double getDensity() {
                return density;
        }

        /**
       * @param density the density to set
       */
        public void setDensity(double density) {
                this.density = density;
        }

        /**
       * @return the specificHeat
       */
        public double getSpecificHeat() {
                return specificHeat;
        }

        /**
       * @param specificHeat the specificHeat to set
       */
        public void setSpecificHeat(double specificHeat) {
                this.specificHeat = specificHeat;
        }

        /**
       * @return the thermalConductivity
       */
        public double getThermalConductivity() {
                return thermalConductivity;
        }

        /**
       * @param thermalConductivity the thermalConductivity to set
       */
        public void setThermalConductivity(double thermalConductivity) {
                this.thermalConductivity = thermalConductivity;
        }


        private String model;        //导体名称,如Aluminium, Copper
        private double conductivity;        // 导电率, 这里没有使用 resistivity, 是便于计算
        private double temperatureCoefficient;        //电阻温度系数
        private double density;        // 密度
        private double specificHeat;        //比热容
        private double thermalConductivity;        // 热传导系数
       
}

hxmotor 发表于 2011-11-25 10:37

回复 1# wenzee


    楼主为何非要用Java呢?VB不就挺好的吗?

wenzee 发表于 2011-11-25 18:31

1. 首先VB不是免费得, 虽然Visual Studio Express是免费得,单VB.net与VB 6.0完全不一样,也是面向对象的,学习VB.net, 还不是学习 C#或 C/C++。
2. 对于我们这些非专业程序员来说, C/C++太复杂,不适合。
3. Java相对C/C++来说,比较简单,当然它比VB复杂很多,但是Java有很多VB没有的优点.
4. Java的IDE Eclipse, Netbeans 都是免费得,且开源。如果你有写程序,有使用盗版,不是自相矛盾。
5. Java跨平台,安全。

1977zxb1977 发表于 2011-12-2 11:05

编好了,把源程序给大家

triplez 发表于 2011-12-2 15:37

计算机语言很多,每个语言有其最适合的应用。Java在数据库应用、基于Web的分布式应用、智能手机/设备应用上应该不错,但在这种大量密集计算的应用中可能会有问题,你的编程应该不会轻松,因为没有什么算法可以直接用,要很多基础编程,计算速度也可能不怎地(除了初期的路算可能还行外)。

liangjlong 发表于 2012-3-16 14:35

支持楼主,早日完成

zyh20099 发表于 2012-3-26 23:00

支持,顶一下

laoji20100101 发表于 2012-10-5 18:36

祝您早日成功,到时别忘了分享一下

zhenghai417 发表于 2012-10-10 23:49

支持,顶一下
祝您早日成功,到时别忘了分享一下

sqsk2009 发表于 2012-11-12 09:13

绝对支持,楼主加油!等你的经验分享

zyh20099 发表于 2012-11-17 20:42

支持楼主,早日完成

syunxiong 发表于 2012-11-19 23:20

祝您早日成功,到时别忘了分享一下

simeng 发表于 2012-11-28 15:44

过去整整一年了,不知楼主进展如何?

龙翔 发表于 2012-12-5 09:51

支持楼主,早日完成,希望可以分享

news 发表于 2013-5-18 13:46

过去整整1.5年了,不知楼主进展如何?

omig001 发表于 2013-5-19 19:45

这帖也能翻出来的,厉害。
不过支持楼主这种思想

dream-ttt 发表于 2013-6-3 17:40

期待楼主破茧成蝶,早上让坛友们分享胜利成果{:soso_e113:}

WY1540304 发表于 2013-7-5 09:58

dos是正版,为什么不用win?

419991818 发表于 2013-7-12 21:12

加油支持,成功分享下
页: [1] 2
查看完整版本: Java 电机设计程序 连载