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
91b18c4b
Commit
91b18c4b
authored
2 years ago
by
Bastien Sultan
Browse files
Options
Downloads
Patches
Plain Diff
AMULET: patching state deletion method
parent
4babfa45
No related branches found
No related tags found
2 merge requests
!439
Patching two methods on mutation compiler, creating a new CLI command for compiling a batch of mutations, adding some tests
,
!438
Patching two bugs in mutation compiler
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.idea/runConfigurations.xml
+0
-10
0 additions, 10 deletions
.idea/runConfigurations.xml
src/main/java/avatartranslator/mutation/RmStateMutation.java
+14
-0
14 additions, 0 deletions
src/main/java/avatartranslator/mutation/RmStateMutation.java
with
14 additions
and
10 deletions
.idea/runConfigurations.xml
deleted
100644 → 0
+
0
−
10
View file @
4babfa45
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"RunConfigurationProducerService"
>
<option
name=
"ignoredProducers"
>
<set>
<option
value=
"com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer"
/>
</set>
</option>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/avatartranslator/mutation/RmStateMutation.java
+
14
−
0
View file @
91b18c4b
...
@@ -41,6 +41,8 @@ package avatartranslator.mutation;
...
@@ -41,6 +41,8 @@ package avatartranslator.mutation;
import
avatartranslator.*
;
import
avatartranslator.*
;
import
myutil.TraceManager
;
import
myutil.TraceManager
;
import
java.util.List
;
/**
/**
* Class RmStateMutation
* Class RmStateMutation
* Creation: 27/06/2022
* Creation: 27/06/2022
...
@@ -58,6 +60,18 @@ public class RmStateMutation extends StateMutation implements RmMutation {
...
@@ -58,6 +60,18 @@ public class RmStateMutation extends StateMutation implements RmMutation {
public
void
apply
(
AvatarSpecification
_avspec
)
throws
ApplyMutationException
{
public
void
apply
(
AvatarSpecification
_avspec
)
throws
ApplyMutationException
{
AvatarState
state
=
getElement
(
_avspec
);
AvatarState
state
=
getElement
(
_avspec
);
AvatarStateMachine
asm
=
getAvatarStateMachine
(
_avspec
);
AvatarStateMachine
asm
=
getAvatarStateMachine
(
_avspec
);
List
<
AvatarStateMachineElement
>
elements
=
asm
.
getListOfElements
();
for
(
AvatarStateMachineElement
element
:
elements
)
{
if
(
element
.
getNexts
().
contains
(
state
)){
for
(
AvatarStateMachineElement
element2
:
elements
)
{
if
(
element2
.
getNexts
().
contains
(
element
)){
element2
.
removeNext
(
element
);
}
}
asm
.
removeElement
(
element
);
}
}
state
.
removeAllNexts
();
asm
.
removeElement
(
state
);
asm
.
removeElement
(
state
);
}
}
...
...
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