Commit 8ca035a4 authored by lafabregue's avatar lafabregue

changed Progressabel implementations

parent e1735256
......@@ -13,13 +13,16 @@ import jcl.utils.Progressable;
public abstract class DataFileIO implements Progressable {
/** Le fichier a lire / ecrire. sur lequel est r�ealisee l'operation */
protected File file = null;
protected File file = null;
/** Progress initial (monitoring des IO) */
protected int progress = 0;
protected int progress = 0;
/** progress max (monitoring des IO) */
int progressMax = 100;
protected int progressMax = 100;
/** Name of the current step of learning */
private String statusName = "Learning";
/** ** Acces au fichier sur lequelle on realise l'operation d' IO *** */
......@@ -103,4 +106,14 @@ public abstract class DataFileIO implements Progressable {
this.progress = this.progressMax;
}
@Override
public void setStatus(String status) {
this.statusName = status;
}
@Override
public String getStatus() {
return statusName;
}
}
......@@ -827,17 +827,4 @@ public class ARFFReader extends DataFileReader {
return res;
}
@Override
public void setStatus(String status)
{
// TODO Auto-generated method stub
}
@Override
public String getStatus()
{
// TODO Auto-generated method stub
return null;
}
} // fin class :)
}
......@@ -208,19 +208,4 @@ public class ARFFWriter extends DataFileWriter {
e.printStackTrace();
}
}
@Override
public void setStatus(String status)
{
// TODO Auto-generated method stub
}
@Override
public String getStatus()
{
// TODO Auto-generated method stub
return null;
}
}
......@@ -571,18 +571,4 @@ public class XmlResultReader extends DataFileReader {
}
}
@Override
public void setStatus(String status)
{
// TODO Auto-generated method stub
}
@Override
public String getStatus()
{
// TODO Auto-generated method stub
return null;
}
}
......@@ -325,18 +325,4 @@ public class XmlResultWriter extends DataFileWriter {
this.saveFile(this.file.getAbsolutePath());
}
@Override
public void setStatus(String status)
{
// TODO Auto-generated method stub
}
@Override
public String getStatus()
{
// TODO Auto-generated method stub
return null;
}
}
......@@ -308,20 +308,6 @@ public class RoiReader extends DataFileIO {
return empty;
}
@Override
public void setStatus(String status)
{
// TODO Auto-generated method stub
}
@Override
public String getStatus()
{
// TODO Auto-generated method stub
return null;
}
/*
* public static void main (String args []) { if (args.length == 1) try {
* RoiReader roiReader = new RoiReader(args [0]); Data [] roi =
......@@ -331,4 +317,4 @@ public class RoiReader extends DataFileIO {
* roi [k].getNbObjects() + " (" + roi [k].getNbAttributes() + ")"); } catch
* (Exception e) { e.printStackTrace(); } }
*/
} // fin class :)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment