Examples of Letter


Examples of com.gmail.lukas.karnowski.enigma.util.Letter

                System.out.println( "Roller id not found" );
                return;
            }

            // Estimate position
            Letter position;
            try {
                position = Letter.fromId( Integer.parseInt( args[2] ) );
            } catch ( NumberFormatException e ) {
                try {
                    position = Letter.fromChar( args[2].toCharArray()[0] );
                } catch ( IllegalArgumentException e1 ) {
                    System.out.println( "Please enter either an id or the letter itself" );
                    return;
                }
            }

            // Update object
            enigma.getRollers()[rollerId - 1].setPosition( position );
            System.out.println( "Position of roller #" + rollerId + " updated to " + position.toString() );
        } else if ( args.length == 2 && args[0].equalsIgnoreCase( "rotate" ) ) {

            // Estimate roller id
            int rollerId;
            try {
View Full Code Here

Examples of com.gmail.lukas.karnowski.enigma.util.Letter

     */
    public Letter[] stringInput( @NonNull final String input ) {
        Letter[] letters = new Letter[input.length()];
        int counter = 0;
        for ( char c : input.toCharArray() ) {
            Letter letter = Letter.fromChar( c );
            letters[counter] = keyInput( letter );
            ++counter;
        }
        return letters;
    }
View Full Code Here

Examples of com.gmail.lukas.karnowski.enigma.util.Letter

        if ( string.length() != Letter.values().length ) {
            throw new IllegalArgumentException( "String length has to be " + Letter.values().length );
        }
        int counter = 0;
        for ( char c : string.toCharArray() ) {
            Letter from = Letter.values()[counter];
            Letter to = Letter.fromChar( c );
            setConnection( from, to );
            ++counter;
        }
    }
View Full Code Here

Examples of edu.eltech.classifier.Letter

    private List<Letter> nonSpamSamples = new ArrayList<Letter>();
    private PlainSpamClassifier classifier = new PlainSpamClassifier();

    @Before
    public void setUp() throws Exception {
        spamSamples.add(new Letter("title1", "THIS LETTER IS SENT TO YOU BECAUSE..."));
        spamSamples.add(new Letter("title2", "you won 100000000000000000$"));
        spamSamples.add(new Letter("title3", "spam SPAM SPAM spam"));
        spamSamples.add(new Letter("title4", "you won !!!!!!!!!!!!!!!!!!!!!"));

        nonSpamSamples.add(new Letter("title5", "THIS IS not an undesired subscription") );
        nonSpamSamples.add(new Letter("title6", "i am sending you 3000$") );
        nonSpamSamples.add(new Letter("title7", "Just a plain letter with some text") );
        nonSpamSamples.add(new Letter("title8", "The concert was excellent !!!") );
    }
View Full Code Here

Examples of edu.eltech.classifier.Letter

    public void reduce(IntWritable key, Iterator<Letter> values,
                       OutputCollector<Category, Letter> collector, Reporter reporter) throws IOException {

          while (values.hasNext()) {
             
              Letter letter = values.next();
              /* classify the data */
              /* write data to the output */
              collector.collect(classifier.classify(letter), letter);
          }

View Full Code Here

Examples of edu.eltech.classifier.Letter

            String letterText = csvReader.get(2);

            int outputKey = (id % 2 == 0) ? 1 : 2;

            /* 2. pass the results to the collector: the key-value pair */
            collector.collect( new IntWritable(outputKey), new Letter(name, letterText));
        }

    }
View Full Code Here

Examples of forestry.mail.Letter

    public void readFromNBT(NBTTagCompound nbttagcompound) {

      if (nbttagcompound == null)
        return;

      letter = new Letter(nbttagcompound);
    }
View Full Code Here

Examples of forestry.mail.Letter

    if (nbttagcompound == null) {
      list.add("<" + StringUtil.localize("gui.blank") + ">");
      return;
    }

    ILetter letter = new Letter(nbttagcompound);
    letter.addTooltip(list);
  }
View Full Code Here

Examples of l2p.gameserver.model.items.MailParcelController.Letter

        partner.addAdena(AdenaAmount);
      }
    }
    else
    {
      Letter letter = new Letter();
      letter.receiverId = _partnerId;
      letter.receiverName = Util.getPlayerNameByObjId(_partnerId);
      letter.senderId = activeChar.getObjectId();
      letter.senderName = activeChar.getName();
      letter.topic = "Divorce notification";
View Full Code Here

Examples of l2p.gameserver.model.items.MailParcelController.Letter

        cha.sendPacket(Msg.THE_ITEM_THAT_YOU_RE_TRYING_TO_SEND_CANNOT_BE_FORWARDED_BECAUSE_IT_ISN_T_PROPER);
        return;
      }
    }
    cha.reduceAdena(serviceCost, true);
    Letter letter = new Letter();
    letter.receiverId = targetId;
    letter.receiverName = _targetName;
    letter.senderId = cha.getObjectId();
    letter.senderName = cha.getName();
    letter.topic = _topic;
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.