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

org.fudaa.dodico.telemac.io.ScopeSFileFormat Maven / Gradle / Ivy

There is a newer version: 2.7
Show newest version
package org.fudaa.dodico.telemac.io;

import java.io.File;
import java.util.Map;

import org.fudaa.ctulu.CtuluIOOperationSynthese;
import org.fudaa.ctulu.ProgressionInterface;
import org.fudaa.ctulu.fileformat.FileFormatUnique;
import org.fudaa.ctulu.fileformat.FileReadOperationAbstract;
import org.fudaa.ctulu.fileformat.FileWriteOperationAbstract;
import org.fudaa.dodico.commun.DodicoLib;
import org.fudaa.dodico.fichiers.FileFormatSoftware;
import org.fudaa.dodico.mesure.EvolutionFileFormatVersion;

/**
 * Manager de fichiers au format scope. Utilis? pour la cr?ation des graphes. au
 * format ScopS
 * 
 * @author Adrien Hadoux
 * 
 */
public class ScopeSFileFormat extends FileFormatUnique implements EvolutionFileFormatVersion {

  static final ScopeSFileFormat INSTANCE = new ScopeSFileFormat();

  /**
   * @return singleton
   */
  public static ScopeSFileFormat getInstance() {
    return INSTANCE;
  }

  private ScopeSFileFormat() {
    super(1);
    extensions_ = new String[] { ScopeKeyWord.TYPE_COURBE_TEMPORELLE,ScopeKeyWord.TYPE_COURBE_TEMPORELLE2,ScopeKeyWord.TYPE_COURBE_TEMPORELLE3,ScopeKeyWord.TYPE_COURBE_TEMPORELLE4,ScopeKeyWord.TYPE_COURBE_TEMPORELLE5};
    id_ = "SCOPE";
    nom_ = "Scope";
    description_ = DodicoLib.getS("Comporte les d?finitions de courbes temporelles et spatiales.");
    software_ = FileFormatSoftware.TELEMAC_IS;
  }

  @Override
  public FileReadOperationAbstract createReader() {
    return new ScopeReaderSorT(this);
  }

  @Override
  public CtuluIOOperationSynthese write(final File _f, final Object _source, final ProgressionInterface _prog) {
    return super.write(_f, _source, _prog);
  }

  @Override
  public FileWriteOperationAbstract createWriter() {
    return new ScopeWriterSorT(this);
  }

  @Override
  public CtuluIOOperationSynthese readEvolutions(File _f, ProgressionInterface _prog, Map _options) {
    return super.read(_f, _prog);
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy