Package java.util

Examples of java.util.Vector.addElement()


    
     result.addElement(
         new Option("\tThe password to use for connecting.",
                    "P", 1, "-P <password>"));
    
     result.addElement(
         new Option("\tEnables debug output.",
                    "D", 0, "-D"));
    
     return result.elements();
   }
View Full Code Here


   * @return an <code>Enumeration</code> value
   */
  public Enumeration enumerateRequests() {
    Vector newVector = new Vector(0);
    if (m_evaluateThread != null) {
      newVector.addElement("Stop");
    }
    return newVector.elements();
  }

  /**
 
View Full Code Here

  public Enumeration listOptions() {

    Vector newVector = new Vector(1);
    Enumeration enu = super.listOptions();
    while (enu.hasMoreElements()) {
      newVector.addElement(enu.nextElement());
    }

    newVector.addElement(new Option(
              "\tName of a directory to search for cost files when loading\n"
              +"\tcosts on demand (default current directory).",
View Full Code Here

    Enumeration enu = super.listOptions();
    while (enu.hasMoreElements()) {
      newVector.addElement(enu.nextElement());
    }

    newVector.addElement(new Option(
              "\tName of a directory to search for cost files when loading\n"
              +"\tcosts on demand (default current directory).",
              "D", 1, "-D <directory>"));

    return newVector.elements();
View Full Code Here

            
             // if first line has data, add to data list
             if (line.length() > 4) {
                 line = line.substring(4).trim();
                 if (line.length() > 0)
                     dataLines.addElement(line);
             }
            
             boolean complete = false;
             while (!complete) {
                
View Full Code Here

                     line = line.substring(3).trim(); // get rid of the code
                     if (line.length() > 0) {
                         if (reply.length() > 0)
                             reply.append(" ");
                         reply.append(line);
                         dataLines.addElement(line);
                     }
                     complete = true;
                 }
                 else { // not the last line
                     reply.append(" ").append(line);
View Full Code Here

                     }
                     complete = true;
                 }
                 else { // not the last line
                     reply.append(" ").append(line);
                     dataLines.addElement(line);
                 }
             } // end while
         } // end if
        
         if (dataLines != null) {
View Full Code Here

   */
  public Enumeration listOptions() {

    Vector newVector = new Vector(4);

    newVector.addElement(new Option(
       "\tThe full class name of the classifier.\n"
        +"\teg: weka.classifiers.bayes.NaiveBayes",
       "W", 1,
       "-W <class name>"));
    newVector.addElement(new Option(
View Full Code Here

    newVector.addElement(new Option(
       "\tThe full class name of the classifier.\n"
        +"\teg: weka.classifiers.bayes.NaiveBayes",
       "W", 1,
       "-W <class name>"));
    newVector.addElement(new Option(
       "\tThe index of the class for which IR statistics\n" +
       "\tare to be output. (default 1)",
       "C", 1,
       "-C <index>"));
    newVector.addElement(new Option(
View Full Code Here

    newVector.addElement(new Option(
       "\tThe index of the class for which IR statistics\n" +
       "\tare to be output. (default 1)",
       "C", 1,
       "-C <index>"));
    newVector.addElement(new Option(
       "\tThe index of an attribute to output in the\n" +
       "\tresults. This attribute should identify an\n" +
             "\tinstance in order to know which instances are\n" +
             "\tin the test set of a cross validation. if 0\n" +
             "\tno output (default 0).",
View Full Code Here

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.