Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
43a6a4e9
Commit
43a6a4e9
authored
7 months ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
restore missing event graph
parent
e1355dea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/ViskitOpenDis7Examples/EventGraphs/dis7/SimpleServer.xml
+46
-0
46 additions, 0 deletions
.../ViskitOpenDis7Examples/EventGraphs/dis7/SimpleServer.xml
with
46 additions
and
0 deletions
examples/src/ViskitOpenDis7Examples/EventGraphs/dis7/SimpleServer.xml
0 → 100644
+
46
−
0
View file @
43a6a4e9
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SimEntity
name=
"SimpleServer"
package=
"examples"
version=
"0.1"
extend=
"SimEntityBase"
xsi:noNamespaceSchemaLocation=
"http://diana.nps.edu/Simkit/simkit.xsd"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<Parameter
name=
"serviceTime"
type=
"simkit.random.RandomVariate"
/>
<Parameter
name=
"totalNumberServers"
type=
"int"
/>
<StateVariable
name=
"numberInQueue"
type=
"int"
/>
<StateVariable
name=
"numberAvailableServers"
type=
"int"
/>
<Event
name=
"Run"
>
<StateTransition
state=
"numberInQueue"
>
<Assignment
value=
"0"
/>
</StateTransition>
<StateTransition
state=
"numberAvailableServers"
>
<Assignment
value=
"totalNumberServers"
/>
</StateTransition>
<Coordinate
x=
"20.0"
y=
"30.0"
/>
</Event>
<Event
name=
"Arrival"
>
<StateTransition
state=
"numberInQueue"
>
<Assignment
value=
"numberInQueue + 1"
/>
</StateTransition>
<Schedule
delay=
"0.0"
event=
"StartService"
condition=
"numberAvailableServers > 0"
priority=
"DEFAULT"
>
<Comment></Comment>
<EdgeParameter
value=
"numberAvailableServers"
/>
</Schedule>
<Coordinate
x=
"20.0"
y=
"130.0"
/>
</Event>
<Event
name=
"StartService"
>
<Comment></Comment>
<Argument
name=
"arg_0"
type=
"int"
/>
<StateTransition
state=
"numberInQueue"
>
<Assignment
value=
"numberInQueue - 1"
/>
</StateTransition>
<StateTransition
state=
"numberAvailableServers"
>
<Assignment
value=
"numberAvailableServers - 1"
/>
</StateTransition>
<Schedule
delay=
"serviceTime.generate()"
event=
"EndService"
priority=
"DEFAULT"
/>
<Code>
System.out.println("numberAvailableServers"+arg_0);
</Code>
<Coordinate
x=
"160.0"
y=
"130.0"
/>
</Event>
<Event
name=
"EndService"
>
<StateTransition
state=
"numberAvailableServers"
>
<Assignment
value=
"numberAvailableServers + 1"
/>
</StateTransition>
<Schedule
delay=
"0.0"
event=
"StartService"
condition=
"numberInQueue > 0"
priority=
"HIGH"
/>
<Coordinate
x=
"330.0"
y=
"130.0"
/>
</Event>
</SimEntity>
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