summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStefan Radomski <sradomski@mintwerk.de>2015-07-05 23:15:31 (GMT)
committerStefan Radomski <sradomski@mintwerk.de>2015-07-05 23:15:31 (GMT)
commitf02d7e5919f16d8396839fcff1e0588d6ccf3004 (patch)
treeae16a349655763856d1286c017c5f29c916d6cd5 /contrib
parent1bc525a7992f560735bb7e0de6981e8e6f616246 (diff)
downloaduscxml-f02d7e5919f16d8396839fcff1e0588d6ccf3004.zip
uscxml-f02d7e5919f16d8396839fcff1e0588d6ccf3004.tar.gz
uscxml-f02d7e5919f16d8396839fcff1e0588d6ccf3004.tar.bz2
Various extensions and bug-fixes
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/local/create-random-scxml.pl15
1 files changed, 9 insertions, 6 deletions
diff --git a/contrib/local/create-random-scxml.pl b/contrib/local/create-random-scxml.pl
index 7c6a3b8..5674852 100755
--- a/contrib/local/create-random-scxml.pl
+++ b/contrib/local/create-random-scxml.pl
@@ -25,6 +25,9 @@ my $maxStates = $options{'states-max'} || 60;
my $maxTrans = $options{'trans-max'} || 6;
my $maxEvents = $options{'trans-max'} || int($maxStates / 3) + 1;
+# $maxStates = 8;
+# $maxTrans = 8
+
srand($seed);
my $machine;
@@ -33,9 +36,9 @@ my $stateId = 0;
my $probs = {
'state' => {
'type' => {
- 'history' => 1,
+ 'history' => 2,
'parallel' => 2,
- 'state' => 6,
+ 'state' => 5,
'final' => 1
}
},
@@ -46,7 +49,7 @@ my $probs = {
'execContent' => 0.7,
},
'history' => {
- 'deep' => 0.2
+ 'deep' => 0.4
}
};
@@ -159,9 +162,9 @@ sub writeState {
writeState($_);
}
- foreach (@{$state->{'transitions'}}) {
- writeTransition($_);
- }
+ # foreach (@{$state->{'transitions'}}) {
+ # writeTransition($_);
+ # }
print STDOUT '</'.$state->{'type'} . '>';