Пример #1
0
 @SuppressWarnings({"rawtypes", "unchecked"})
 public List<T> getOfferedTokens() {
   if (this.offeredTokens == null) {
     offeredTokens = (List) group.getTokensOfferedTo(this);
   }
   return offeredTokens;
 }
Пример #2
0
 @SuppressWarnings({"rawtypes", "unchecked"})
 public ActivityEdgeInstance(
     String id, ActivityNodeActivation<AE, T> source, ActivityNodeActivation<AE, T> target) {
   super();
   this.id = id;
   this.group = source.getGroup();
   this.source = source;
   this.target = target;
   offeredTokens = (List) group.getTokensOfferedTo(this);
   source.getOutgoingEdges().add(this);
   target.getIncomingEdges().add(this);
 }