/******************************************************************************* * Copyright (c) 2011 IRIS/DMC. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * IRIS/DMC- initial API and implementation * * ACKNOWLEDGEMENT * This software was developed as part of a project supported by * Cooperative Agreement Number G10AC00533 from the United States * Geological Survey. Its contents are solely the responsibility of * the authors and the USGS is not responsible for the efficacy, * safety, or suitability of this software. ******************************************************************************/ public class B { protected int id; protected int type; protected Stage stage; protected int repeat; public B(int id, int type, int repeat){ this.id=id; this.type=type; this.repeat=repeat; System.out.println("Hello"); } public Stage getStage() { return stage; } public void setStage(Stage stage) { this.stage = stage; } public int getId() { return id; } public void setId(int id) { this.id = id; } public int getType() { return type; } public void setType(int type) { this.type = type; } public int getRepeat() { return repeat; } public void setRepeat(int repeat) { this.repeat = repeat; } public void modify(int repeat){ this.repeat += repeat; } }