⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpeak.java

📁 本书透彻讲解了经典的《设计模式:可复用面向对象软件的基础》一书涵盖的23种基本设计模式。本书将这些设计模式分成五类:接口型模式、责任型模式、构造型模式、操作型模式
💻 JAVA
字号:
package com.oozinoz.ballistics;

import java.util.*;

/*
 * Copyright (c) 2000 Steven J. Metsker. All Rights Reserved.
 * 
 * Steve Metsker makes no representations or warranties about
 * the fitness of this software for any particular purpose, 
 * including the implied warranty of merchantability.
 */

/**
 * Instances of this class provide an observably changeable
 * model of the time at which a fuel's burn area peaks.
 * 
 * @author Steven J. Metsker
 *
 * @version 1.0
 */
public class Tpeak extends Observable 
{
	protected double value;
/**
 * Create a model of the time at which a fuel's burn area
 * peaks.
 * 
 * @param value the initial peak time
 */
public Tpeak(double value) 
{
	this.value = value;
}
/**
 * Return the current value of the peak time.
 *
 * @return the current value of the peak time
 */
public double getValue() 
{
	return value;
}
/**
 * Set the current value of the peak time and notify
 * observers.
 *
 * @param value the current value of the peak time
 */
public void setValue(double value) 
{
	this.value = value;
	setChanged();
	notifyObservers();
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -