Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
fix #3086
Browse files Browse the repository at this point in the history
  • Loading branch information
terfloth committed May 12, 2020
1 parent 793ae1b commit d1e0d26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2015 committers of YAKINDU and others.
* Copyright (c) 2015-20 committers of YAKINDU and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -112,7 +112,7 @@ class StatechartExtensions {
}

def dispatch int maxNumberOfParallelTimeEvents(Region r) {
r.vertices.filter(State).map[maxNumberOfParallelTimeEvents].max
r.vertices.filter(State).map[maxNumberOfParallelTimeEvents].fold(0, [ a, b | Math.max(a,b) ])
}

def dispatch int maxNumberOfParallelTimeEvents(State s) {
Expand Down

0 comments on commit d1e0d26

Please sign in to comment.