-
GeometricVersion3
课程设计
几何图形(满分50 分)
版本1:满分10 分
设计抽象类GeometricObject 及其子类Triangle 和Circle。
GeometricObject 类设计要求如下:
■ 一个名为color 的Color 类型的私有数据域,表示对象的颜色。
■ 一个名为filled 的Boolean 类型的私有数据域,表示对象是否填充颜色。
■ 一个名为dateCreated 的Date 类型的私有数据域,表示对象的创建日期。
■ 一个无参构造方法。
■ 一个能创建特定color 和filled 的有参构造方法。
■ 相关数据域的访问器和修改器。
■ 两个个名为draw 和erase 的抽象方法。
■ 一个名为getArea 的抽象方法。
■ 一个名为getPerimeter 的抽象方法。
■ 重写toString 方法。
Triangle 类设计要求如下:
■ 三个名为side1、side2 和 side3 的double 类型的私有数据域表示三角形的三条边。它
们的默认值是1.0。要求三个数据域保留2 位小数。
■ 一个无参的构造方法创建默认三角形。
■ 一个能创建带指定side1、side2 和 side3 的有参构造方法。
■ 所有三个数据域的访问器和修改器方法。
■ 父类抽象方法的实现。
■ 重写toString 方法。
Circle 类(Curriculum Design
Geometry (out of 50)
Version 1: 10 points
Design an abstract class and its subclasses GeometricObject Triangle and Circle.
GeometricObject class design requirements are as follows:
■ a named color of the Color type private data field that indicates the object s color.
■ a Boolean type called filled private data field that indicates whether the object fill color.
■ Date type named dateCreated private data field, which means that the object was created.
■ a no-argument constructor.
■ one can create a specific color and filled in with arg constructor.
■ Related data field accessor and modifier.
■ two months called draw and erase the abstract methods.
■ an abstract method named getArea.
■ an abstract method named getPerimeter.
■ overridden toString method.
Triangle class design requirements are as follows:
■ three named side1, side2 and a double side3 private data field indicates the type of triangle with three sides. It
Our default value is 1.0. Requires)
- 2020-12-10 08:59:18下载
- 积分:1
-
svt
利用 svt算法解决 Rpca算法的放缩问题,牛刀小试,大家见谅!(Solves the Robust PCA relaxation)
- 2020-06-29 04:00:02下载
- 积分:1
-
carofoil
查询车辆油耗信息,根据车号,司机,日期等(Query the vehicle fuel consumption information)
- 2014-12-10 10:57:10下载
- 积分:1
-
GSM
基于梯度相似度的图像质量评价方法,发表在2012年TIP国际期刊上(A. Liu, W. Lin, M. Narwaria, “Image Quality Assessment Based on Gradient Similarity,” IEEE Transactions on Image Processing, vol. 21(4), pp. 1500-1512, 2012.)
- 2020-12-04 23:09:23下载
- 积分:1
-
polsar
polsarpro软件的使用说明,适合处理极化SAR图像。(polsarpro the software instructions for dealing with polarization SAR images.)
- 2009-11-21 17:21:07下载
- 积分:1
-
optical_tools_matlab
光学组件的matlab工具包,利用它,你可以仿真spot,几何像差,如慧差,球差,还有mtf仿真等(Optical components matlab toolkit, use it, you can simulation spot, geometric aberration, such as the Hui poor, spherical aberration, as well as simulation mtf)
- 2021-04-08 14:19:00下载
- 积分:1
-
k-means+BOF
提取sift特征,通过K均值聚类形成特征包,进行图像检索。(SIFT features are extracted and image packets are retrieved through K mean clustering.)
- 2020-11-28 14:49:28下载
- 积分:1
-
focuss-cndl
focuss算法 关于图像稀疏性分解中字典学习的经典算法 和大家一同分享 (focuss algorithm on the sparse image decomposition in the dictionary of the classical learning algorithm and we share)
- 2009-05-11 15:44:26下载
- 积分:1
-
quality--index-of-image
此文档中的代码可以计算5种图像的质量参数,分别是:图像灰度均值、图像方差、图像平均梯度、熵和峰值信噪比及均方误差。(The code in this document can be calculated five kinds of image quality parameters, namely: the image gray value, image variance, average gradient image, entropy and peak signal to noise ratio and mean square error.)
- 2013-06-07 16:09:00下载
- 积分:1
-
yasuoer
该源程序可以实现BMP图片的压缩(BMP pictures)
- 2012-11-21 11:33:15下载
- 积分:1