Java 电机设计程序 连载
本人欲用J设计一个集1. 电机设计;
2.电磁数据管理;
3.出厂检验数据管理
于一体的企业版系统。
本系统采取 Java语言设, 数据库为 MYsql.
首先是三相异步感应电动机的设计程序。
现以连载的方式呈现。
希望各位大侠指点。 既然是电机,就得使用导体. 所以,首先提交 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; // 热传导系数
} 回复 1# wenzee
楼主为何非要用Java呢?VB不就挺好的吗? 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跨平台,安全。 编好了,把源程序给大家 计算机语言很多,每个语言有其最适合的应用。Java在数据库应用、基于Web的分布式应用、智能手机/设备应用上应该不错,但在这种大量密集计算的应用中可能会有问题,你的编程应该不会轻松,因为没有什么算法可以直接用,要很多基础编程,计算速度也可能不怎地(除了初期的路算可能还行外)。 支持楼主,早日完成 支持,顶一下 祝您早日成功,到时别忘了分享一下 支持,顶一下
祝您早日成功,到时别忘了分享一下 绝对支持,楼主加油!等你的经验分享 支持楼主,早日完成 祝您早日成功,到时别忘了分享一下 过去整整一年了,不知楼主进展如何? 支持楼主,早日完成,希望可以分享 过去整整1.5年了,不知楼主进展如何? 这帖也能翻出来的,厉害。
不过支持楼主这种思想 期待楼主破茧成蝶,早上让坛友们分享胜利成果{:soso_e113:} dos是正版,为什么不用win? 加油支持,成功分享下
页:
[1]
2