Advertisement
VincentOostelbos

possibilities method for cave name generator

Jul 8th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.53 KB | None | 0 0
  1. public long possibilities() {
  2.         long possibilities = 0L;
  3.        
  4.         int numberverbs=0, numbertransverbs=0, numbernouns=0, numberadj=0, numbercaves=0, numberabstr=0, numberobj=0;
  5.         Random random = new Random();
  6.         RandomNoun randomNoun = new RandomNoun();
  7.         RandomVerb randomVerb = new RandomVerb();
  8.         RandomFileLine randomFileLine = new RandomFileLine();
  9.    
  10.         try {
  11.             numberverbs = randomVerb.number();
  12.             numbertransverbs = randomVerb.numbertrans();
  13.             numbernouns = randomNoun.number();
  14.             numberadj = randomFileLine.number("adj.txt");
  15.             numbercaves = randomFileLine.number("caves.txt");
  16.             numberabstr = randomFileLine.number("abstract.txt");
  17.            
  18.         } catch (IOException e1) {
  19.             // TODO Auto-generated catch block
  20.             e1.printStackTrace();
  21.         }
  22.        
  23.         possibilities += numberadj; // 1 (The) [Adj] [Cave]
  24.         possibilities += (numberadj*numbernouns)+numbernouns; // 2 (The) ([Adj]) [SgNoun] [Cave]
  25.         possibilities += (numberadj*numberabstr)+numberabstr; // 3 (The) ([Adj]) [Abstr] [Cave]
  26.         possibilities += numberadj*numbernouns; // 4 (The) [Adj] [PlNoun] [Cave]
  27.         possibilities += (numberadj*numberverbs)+numberverbs; // 5 (The) ([Adj]) [PresPV] [Cave]
  28.         possibilities += (numberadj*numberverbs*numbernouns)+(numberverbs*numbernouns); // 6 (The) ([Adj]) [PresPV] [SgNoun] [Cave]
  29.         // possibilities += 0; // 7 (The) ([Adj]) [PresPV] [PlNoun] [Cave]
  30.         // possibilities += 0; // 8 (The) ([Adj]) [PresPV] [Abstr] [Cave]
  31.         // possibilities += 0; // 9 (The) ([Adj]) [Cave] of (the) ([Adj]) [SgNoun]
  32.         // possibilities += 0; // 10 (The) ([Adj]) [Cave] of (the) ([Adj]) [PlNoun]
  33.         // possibilities += 0; // 11 (The) ([Adj]) [Cave] of ([Adj]) [Abstr]
  34.         // possibilities += 0; // 12 (The) ([Adj]) [Cave] of (the) ([Adj]) [PresPV] [SgNoun]
  35.         // possibilities += 0; // 13 (The) ([Adj]) [Cave] of (the) ([Adj]) [PresPV] [PlNoun]
  36.         // possibilities += 0; // 14 (The) ([Adj]) [Cave] of ([Adj]) [PresPV] [Abstr]
  37.         // possibilities += 0; // 15 (The) ([Adj]) [SgNoun] [3V] [Cave]
  38.         // possibilities += 0; // 16 (The) ([Adj]) [SgNoun] [PastV] [Cave]
  39.         // possibilities += 0; // 17 (The) ([Adj]) [SgNoun] has [PastPV] [Cave]
  40.         // possibilities += 0; // 18 (The) ([Adj]) [SgNoun] is [PresPV] [Cave]
  41.         // possibilities += 0; // 19 (The) ([Adj]) [PlNoun] [PlV] [Cave]
  42.         // possibilities += 0; // 20 (The) ([Adj]) [PlNoun] [PastV] [Cave]
  43.         // possibilities += 0; // 21 (The) ([Adj]) [PlNoun] have [PastPV] [Cave]
  44.         // possibilities += 0; // 22 (The) ([Adj]) [PlNoun] are [PresPV] [Cave]
  45.         // possibilities += 0; // 23 (The) ([Adj]) [Cave] where I [1V]
  46.         // possibilities += 0; // 24 (The) ([Adj]) [Cave] where I [PastV]
  47.         // possibilities += 0; // 25 (The) ([Adj]) [Cave] where I have [PastPV]
  48.         // possibilities += 0; // 26 (The) ([Adj]) [Cave] where I am [PresPV]
  49.         // possibilities += 0; // 27 (The) ([Adj]) [Cave] where you [1V]
  50.         // possibilities += 0; // 28 (The) ([Adj]) [Cave] where you [PastV]
  51.         // possibilities += 0; // 29 (The) ([Adj]) [Cave] where you have [PastPV]
  52.         // possibilities += 0; // 30 (The) ([Adj]) [Cave] where you are [PresPV]
  53.         // possibilities += 0; // 31 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] [3V]
  54.         // possibilities += 0; // 32 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] [PastV]
  55.         // possibilities += 0; // 33 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] has [PastPV]
  56.         // possibilities += 0; // 34 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] is [PresPV]
  57.         // possibilities += 0; // 35 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] [PlV]
  58.         // possibilities += 0; // 36 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] [PastV]
  59.         // possibilities += 0; // 37 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] have [PastPV]
  60.         // possibilities += 0; // 38 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] are [PresPV]
  61.         // possibilities += 0; // 39 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] [3V]
  62.         // possibilities += 0; // 40 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] [PastV]
  63.         // possibilities += 0; // 41 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] has [PastPV]
  64.         // possibilities += 0; // 42 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] is [PresPV]
  65.         // possibilities += 0; // 43 (The) ([Adj]) [SgNoun] [3V] [Cave]
  66.         // possibilities += 0; // 44 (The) ([Adj]) [SgNoun] [PastVT] [Object] [Cave]
  67.         // possibilities += 0; // 45 (The) ([Adj]) [SgNoun] has [PastPVT] [Object] [Cave]
  68.         // possibilities += 0; // 46 (The) ([Adj]) [SgNoun] is [PresPVT] [Object] [Cave]
  69.         // possibilities += 0; // 47 (The) ([Adj]) [PlNoun] [PlVT] [Object] [Cave]
  70.         // possibilities += 0; // 48 (The) ([Adj]) [PlNoun] [PastVT] [Object] [Cave]
  71.         // possibilities += 0; // 49 (The) ([Adj]) [PlNoun] have [PastPVT] [Object] [Cave]
  72.         // possibilities += 0; // 50 (The) ([Adj]) [PlNoun] are [PresPVT] [Object] [Cave]
  73.         // possibilities += 0; // 51 (The) ([Adj]) [Cave] where I [1VT] [Object]
  74.         // possibilities += 0; // 52 (The) ([Adj]) [Cave] where I [PastVT] [Object]
  75.         // possibilities += 0; // 53 (The) ([Adj]) [Cave] where I have [PastPVT] [Object]
  76.         // possibilities += 0; // 54 (The) ([Adj]) [Cave] where I am [PresPVT] [Object]
  77.         // possibilities += 0; // 55 (The) ([Adj]) [Cave] where you [1VT] [Object]
  78.         // possibilities += 0; // 56 (The) ([Adj]) [Cave] where you [PastVT] [Object]
  79.         // possibilities += 0; // 57 (The) ([Adj]) [Cave] where you have [PastPVT] [Object]
  80.         // possibilities += 0; // 58 (The) ([Adj]) [Cave] where you are [PresPVT] [Object]
  81.         // possibilities += 0; // 59 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] [3VT] [Object]
  82.         // possibilities += 0; // 60 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] [PastVT] [Object]
  83.         // possibilities += 0; // 61 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] has [PastPVT] [Object]
  84.         // possibilities += 0; // 62 (The) ([Adj]) [Cave] where the ([Adj]) [SgNoun] is [PresPVT] [Object]
  85.         // possibilities += 0; // 63 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] [PlVT] [Object]
  86.         // possibilities += 0; // 64 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] [PastVT] [Object]
  87.         // possibilities += 0; // 65 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] have [PastPVT] [Object]
  88.         // possibilities += 0; // 66 (The) ([Adj]) [Cave] where (the) ([Adj]) [PlNoun] are [PresPVT] [Object]
  89.         // possibilities += 0; // 67 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] [3VT] [Object]
  90.         // possibilities += 0; // 68 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] [PastVT] [Object]
  91.         // possibilities += 0; // 69 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] has [PastPVT] [Object]
  92.         // possibilities += 0; // 70 (The) ([Adj]) [Cave] where ([Adj]) [Abstr] is [PresPVT] [Object]
  93.         possibilities *= 2*numbercaves;
  94.        
  95.         return possibilities;
  96.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement