Package org.encog.script.javascript.objects

Source Code of org.encog.script.javascript.objects.JSEncogCollection

package org.encog.script.javascript.objects;

import java.io.File;

import org.encog.persist.EncogMemoryCollection;
import org.encog.persist.location.FilePersistence;

import org.mozilla.javascript.ScriptableObject;

public class JSEncogCollection extends ScriptableObject {
 
  private EncogMemoryCollection collection = new EncogMemoryCollection();
 
  @Override
  public String getClassName() {
    return "EncogCollection";
  }
 
  public void jsFunction_load(String filename)
  {
    this.collection.load(new FilePersistence(new File(filename)));
  }
 
  public void jsFunction_save(String filename)
  {
    this.collection.save(new FilePersistence(new File(filename)));
  }

  public EncogMemoryCollection getCollection() {
    return collection;
  }

  public void setCollection(EncogMemoryCollection collection) {
    this.collection = collection;
  }
 
 
 
}
TOP

Related Classes of org.encog.script.javascript.objects.JSEncogCollection

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.