Examples of Integer


Examples of ca.grimoire.jnoise.modules.basic.Integer

   */
  public Integer createModule () throws BuilderException {
    if (!seedSet)
      throw new BuilderException ("No seed for integer module.");

    return new Integer (seed);
  }
View Full Code Here

Examples of cybop.basic.Integer

    }

    /**Initialization of Dialog*/
    public void initialize() {
        setTitle(new String("Choose alternative..."));
        set(AlternativeOverlaysPreviewDialog.DIALOG_WIDTH, new Integer(10));
        set(AlternativeOverlaysPreviewDialog.DIALOG_X_POSITION, new Integer(150));
        set(AlternativeOverlaysPreviewDialog.DIALOG_Y_POSITION, new Integer(10));       

        FlowLayout flowLayout = new FlowLayout();
        flowLayout.setAlignment(FlowLayout.LEFT);
        setLayout(flowLayout);
        setDisplayMode(DisplayFactory.MODELESS_DIALOG_DISPLAY);
View Full Code Here

Examples of java.lang.Integer

        mDB = aDB;

        colNameToNumber = new Hashtable();
        for(int i = 0; i < colNames.length; ++i) {
            // Note: Array indices are 0-based, column numbers are 1-based.
            colNameToNumber.put(colNames[i], new Integer(i+1));
        }
    }
View Full Code Here

Examples of java.lang.Integer

        mDB = aDB;

        colNameToNumber = new Hashtable();
        for(int i = 0; i < colNames.length; ++i) {
            // Note: Array indices are 0-based, column numbers are 1-based.
            colNameToNumber.put(colNames[i], new Integer(i+1));
        }
    }
View Full Code Here

Examples of java.lang.Integer

            int index = 0;
            //NOTE: occurrences can be used as Sigma X<k,j> when calculating Entropy
            for (InterveningWordsPattern a_pattern : pattern_list.keySet()) {
                //int val = a_pattern.getOccurrences();
                //System.err.println(a_pattern.getPattern() + " " + val);
                matrix_column_map.put(new Integer(index), a_pattern);
                index++;
                InterveningWordsPattern b_pattern = new InterveningWordsPattern(a_pattern.getPattern());
                b_pattern.setOccurrences(a_pattern.getOccurrences());
                b_pattern.setReverse(true);
                matrix_column_map.put(new Integer(index), b_pattern);
                index++;
            }
    }
View Full Code Here

Examples of java.lang.Integer

            int index = 0;
            for (String a_phrase : filtered_phrases) {
                String[] curr = a_phrase.split(":");
                String A = curr[0];
                String B = curr[1];
                matrix_row_map.put(new Integer(index), A + ":" + B);
                index++;
                //add reverse pair as well
                matrix_row_map.put(new Integer(index), B + ":" + A);
                index++;
            }
    }
View Full Code Here

Examples of java.lang.Integer

     **/
    public Matrix createSparseMatrix() {

        Matrix m = Matrices.create(matrix_row_map.size(), matrix_column_map.size(), false);
        for (int row_num = 0; row_num < matrix_row_map.size(); row_num++) { // for each pattern
            String p = matrix_row_map.get(new Integer(row_num));
            String[] p_sp = p.split(":");
            String a = p_sp[0];
            String b = p_sp[1];
            for (int col_num = 0; col_num < matrix_column_map.size(); col_num++) { // for each phrase
                InterveningWordsPattern col_pattern = matrix_column_map.get(new Integer(col_num));
                String pattern = col_pattern.getPattern();
                String comb_patterns;
                if (col_pattern.getReverse()) { //if the column is a reverse pattern...word2 P word1
                    comb_patterns = ".*\\s" + b + pattern + a + "\\s.*";
                } else {
View Full Code Here

Examples of java.lang.Integer

    this._url            =  metadata[0];
    this._ipAddress      =  metadata[1];
    this._archiveDate    =  format.parse(metadata[2]);
    this._contentType    =  metadata[3];
    this._contentLength  = (new Integer(metadata[4])).intValue();
  }
View Full Code Here

Examples of java.lang.Integer

   * @param mimeType The MIME type associated with this reader.
   * @param reader The CatalogReader to use.
   */
  public void addReader(String mimeType, CatalogReader reader) {
    if (readerMap.contains(mimeType)) {
      Integer pos = (Integer) readerMap.get(mimeType);
      readerArr.set(pos.intValue(), reader);
    } else {
      readerArr.add(reader);
      Integer pos = new Integer(readerArr.size()-1);
      readerMap.put(mimeType, pos);
    }
  }
View Full Code Here

Examples of java.lang.Integer

    public void testPrimitiveInvoke() throws Throwable {
        TestBean bean = new TestBean();
        StaticJavaComponentTargetInvoker invoker = new StaticJavaComponentTargetInvoker(primitiveMethod, bean);
        Object ret = invoker.invokeTarget(new Integer[]{1});
        Integer retI = (Integer) ret;
        Assert.assertEquals(1, retI.intValue());
    }
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.