All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.meta.DataSetMeta Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package com.expleague.ml.meta;

import com.expleague.ml.data.tools.Pool;
import com.expleague.ml.meta.items.FakeItem;
import com.expleague.ml.meta.items.FocusItem;
import com.expleague.ml.meta.items.QURLItem;
import com.expleague.ml.meta.items.ViewportAnswersWeighting;

import java.util.Date;

/**
 * User: solar
 * Date: 04.07.14
 * Time: 15:11
 */
public interface DataSetMeta {
  String id();
  String source();
  String author();
  Date created();
  Class type();

  Pool owner();
  void setOwner(Pool pool);

  enum ItemType {
    FAKE(FakeItem.class),
    QURL(QURLItem.class),
    VIEWPORT_WEIGHTING(ViewportAnswersWeighting.class),
    FOCUS(FocusItem.class)
    ;

    private final Class clazz;

    ItemType(final Class clazz) {
      this.clazz = clazz;
    }

    public Class clazz() {
      return clazz;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy