MOA 12.03
Real Time Analytics for Data Streams
|
00001 /* 00002 * InstanceStream.java 00003 * Copyright (C) 2007 University of Waikato, Hamilton, New Zealand 00004 * @author Richard Kirkby ([email protected]) 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 * 00019 */ 00020 package moa.streams; 00021 00022 import moa.MOAObject; 00023 import moa.core.InstancesHeader; 00024 import weka.core.Instance; 00025 00032 public interface InstanceStream extends MOAObject { 00033 00041 public InstancesHeader getHeader(); 00042 00048 public long estimatedRemainingInstances(); 00049 00056 public boolean hasMoreInstances(); 00057 00063 public Instance nextInstance(); 00064 00070 public boolean isRestartable(); 00071 00077 public void restart(); 00078 }