~yrke/tapaal/removeNetType

« back to all changes in this revision

Viewing changes to src/dk/aau/cs/translations/tapn/Degree2BroadcastTranslation.java

MergedĀ lp:~yrke/tapaal/testbranch-syntaxOnlyChanges

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
                                TimedAutomaton tokenTemplate = createTokenAutomaton(degree2Model, conservativeModel, new TimedToken(bottom));
147
147
                                tokenTemplate.setInitLocation(getLocationByName(P_CAPACITY));
148
148
                                nta.addTimedAutomaton(tokenTemplate);
149
 
                                tokenTemplate.setName(TOKEN_TEMPLATE_NAME + String.valueOf(degree2Model.marking().size() - 1 + i));
 
149
                                tokenTemplate.setName(TOKEN_TEMPLATE_NAME + (degree2Model.marking().size() - 1 + i));
150
150
                        }
151
151
                }
152
152
 
740
740
                return new Degree2BroadcastNamingScheme();
741
741
        }
742
742
 
743
 
        protected class Degree2BroadcastNamingScheme implements
 
743
        protected static class Degree2BroadcastNamingScheme implements
744
744
                        TranslationNamingScheme {
745
745
                private static final int NOT_FOUND = -1;
746
746
                private final String START_OF_SEQUENCE_PATTERN = "^(\\w+)_(?:test|single|deg2)$";