Пример #1
0
 /**
  * Gets a list of elements associated with this decision. These might be decisions, alternatives,
  * or questions)
  */
 public Vector getList(RationaleElementType type) {
   if (type.equals(RationaleElementType.PATTERNDECISION)) {
     return subDecisions;
   } else if (type.equals(RationaleElementType.ALTERNATIVE)) {
     return alternatives;
   } else if (type.equals(RationaleElementType.QUESTION)) {
     return questions;
   } else {
     return null;
   }
 }