Skip to content

Commit

Permalink
nicer file
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef552 committed Aug 13, 2024
1 parent 97884ae commit 7feb907
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/view/DownloadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ interface ActiveModel {
}

const createFile = async (currentSystem: SystemOptionType) => {
//TODO doesnt encompass any processes, systems or other definitions since the TA Definition only contains these types
//TODO doesnt encompass other definitions like int since the current TA Definition only contains these types
const prefix =
'#\n# This is a TChecker file\n# The TChecker file format is described here:\n# https://github.com/ticktac-project/tchecker/wiki/TChecker-file-format\n#\n\n';
const systemName = currentSystem.label;
const systemDef = 'system:' + systemName + '\n';
let taFile = systemDef;
const systemDef = 'system:' + systemName + '\n' + '\n';
let taFile = prefix + systemDef;
let processes = '';
let events = '';
const existingEvents: string[] = [];
Expand Down Expand Up @@ -109,9 +111,9 @@ const createFile = async (currentSystem: SystemOptionType) => {
edges += newEdge;
});
const singularProcess = processDef + clocks + locations + edges;
processes += singularProcess;
processes += singularProcess + '\n' + '\n';
});
taFile += events;
taFile += events + '\n';
taFile += processes;
//console.log(taFile);

Expand Down

0 comments on commit 7feb907

Please sign in to comment.