| // DiseaseModelLabelValue.java |
| package org.eclipse.stem.diseasemodels.standard; |
| |
| /******************************************************************************* |
| * Copyright (c) 2006 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| import org.eclipse.stem.core.graph.IntegrationLabelValue; |
| import org.eclipse.stem.core.graph.LabelValue; |
| |
| /** |
| * This interface defines a class in an EMF model for an disease model label |
| * value. The values of this label record the number of population members who |
| * have been "born" and who have "died". |
| * |
| * @model abstract="true" |
| */ |
| |
| public interface DiseaseModelLabelValue extends IntegrationLabelValue { |
| |
| /** |
| * This is the maximum value for any population. |
| */ |
| double MAX_POPULATION_VALUE = 1e12; |
| |
| /** |
| * @return the sum of the living population members in all states |
| * |
| * @model volatile="true" transient="true" changeable="false" |
| */ |
| double getPopulationCount(); |
| } // DiseaseModelLabelValue |