diff options
Diffstat (limited to 'org.mihalis.opal/src/main/java/org/mihalis/opal/systemMonitor/Sample.java')
-rw-r--r-- | org.mihalis.opal/src/main/java/org/mihalis/opal/systemMonitor/Sample.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/org.mihalis.opal/src/main/java/org/mihalis/opal/systemMonitor/Sample.java b/org.mihalis.opal/src/main/java/org/mihalis/opal/systemMonitor/Sample.java new file mode 100644 index 0000000..197bc4a --- /dev/null +++ b/org.mihalis.opal/src/main/java/org/mihalis/opal/systemMonitor/Sample.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2011 2Laurent CARON + * 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: + * Laurent CARON (laurent.caron at gmail dot com) - initial API and implementation + *******************************************************************************/ +package org.mihalis.opal.systemMonitor; + +/** + * This interface represents a data sample that will be displayed in the + * SystemMonitor widget. + */ +public interface Sample { + + /** + * Gets the value. + * + * @return the current value of the sample + */ + double getValue(); + + /** + * Gets the max value. + * + * @return the max value of the sample + */ + double getMaxValue(); + +} |