コード例 #1
0
 protected void checkValidity(Tsml tsml) {
   super.checkValidity(tsml);
   /*
    * Initial marking should be positive integer.
    */
   int value = Integer.valueOf(text.getText());
   if (value <= 0) {
     tsml.log(tag, lineNumber, "Expected positive integer");
   }
 }
コード例 #2
0
 /**
  * Sets the weight of the given arc in the given net to this inscription.
  *
  * @param arc The given arc.
  */
 public void unmarshall(Transition transition) {
   if (text != null) {
     super.unmarshall(transition);
   }
 }