Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
ce02d995
Commit
ce02d995
authored
8 months ago
by
Sophie Coudert
Browse files
Options
Downloads
Patches
Plain Diff
AvatarFromSysMLError commented
parent
2a450bb0
No related branches found
Branches containing commit
No related tags found
3 merge requests
!504
merge first stable version of Avatar-SysML V2
,
!503
merge the first stable version of the Avatar-SysML parser/generator
,
!501
Avatar sys ml 04 2024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/avatartranslator/tosysmlv2/AvatarFromSysMLError.java
+11
-3
11 additions, 3 deletions
...java/avatartranslator/tosysmlv2/AvatarFromSysMLError.java
with
11 additions
and
3 deletions
src/main/java/avatartranslator/tosysmlv2/AvatarFromSysMLError.java
+
11
−
3
View file @
ce02d995
...
...
@@ -42,19 +42,27 @@ import java_cup.runtime.ComplexSymbolFactory.Location;
* Class AvatarFromSysMLError
* Creation: 20/06/2024
*
* Errors that are reported when parsing an Avatar SysML model and building the corresponding Avatar Model.
* These errors are (potentially) provided with two locations. Idea: the location where the error occurs + a reference location for conflicting
* declarations, for example.
* @author Sophie Coudert
* @version 0.1 20/06/2024
*/
public
class
AvatarFromSysMLError
{
public
static
final
byte
LOWWARNING
=
0
;
public
static
final
byte
LOWWARNING
=
0
;
// TODO: probably simplify in 3 levels ERROR, WARNING, BUG
public
static
final
byte
HIGHWARNING
=
1
;
public
static
final
byte
LOWERROR
=
2
;
public
static
final
byte
LOWERROR
=
2
;
public
static
final
byte
HIGHERROR
=
3
;
public
static
final
byte
BUGERROR
=
4
;
private
Location
location
;
/** location (sometime approximative) where the error has been detected */
private
Location
location
;
/** reference location concerned by the error, in case of conflict for example */
private
Location
reference
;
/** message describing the error */
private
String
message
;
/** seriousness of the error */
private
byte
level
;
public
AvatarFromSysMLError
(
Byte
lv
,
Location
loc
,
String
msg
,
Location
ref
){
location
=
loc
;
reference
=
ref
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment