Skip to content

Commit

Permalink
first commit after reorganization to make this repo the home for runn…
Browse files Browse the repository at this point in the history
…ing experiments comprised of

multiple simulation runs
  • Loading branch information
dmnTools committed Dec 13, 2024
1 parent 2368170 commit e431b8e
Show file tree
Hide file tree
Showing 32 changed files with 1,320 additions and 230 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ RUN apt-get -y update && \
# Build the pcesapps app
WORKDIR /pcesapps
COPY . .
RUN cd embedded/sim-dir && go mod tidy && go build -o /bin/sim sim.go exp.go
RUN cd simulator/sim-dir && go mod tidy && go build -o /bin/sim sim.go exp.go

# remember to use "-v" to map in /tmp/extern
WORKDIR /tmp/extern/input
WORKDIR /pcesapps/simulator/sim-dir
RUN sim -is /tmp/extern/input/args-sim
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This repo holds applications (each in its own module 'main') that use repos related to the MrNesbits simulation project. The idea is that one can clone this repo, descend into one of the application subdirectories, run programs that build the application's architecture and operating context, then build and run the application code.
This repo holds the framework for executing experiments comprised of multiple runs of the pces simulator. The heavy lifting is done in subdirectories simulator and simulator/sim-dir, with code that can be used to run multiple different pces applications. Other subdirectories in this repo hold model input files.

204 changes: 0 additions & 204 deletions embedded/sim-dir/sim.go

This file was deleted.

137 changes: 137 additions & 0 deletions embedded/template/cp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
patterns:
Crypto:
cptype: simple
edges: []
extedges: []
funcs:
- class: srvRsp
label: cryptoProcess
name: Crypto
services:
decrypt:
cp: ''
label: cryptoProcess
Embedded:
cptype: simple
edges:
- dstcp: Embedded
dstlabel: reqDecrypt
msgtype: decrypt
srccp: Embedded
srclabel: validateSrc
- dstcp: Embedded
dstlabel: embeddedProcess
msgtype: process
srccp: Embedded
srclabel: reqDecrypt
- dstcp: Embedded
dstlabel: reqEncrypt
msgtype: encrypt
srccp: Embedded
srclabel: embeddedProcess
extedges:
- dstcp: HMI
dstlabel: validateSrc
msgtype: results
srccp: Embedded
srclabel: reqEncrypt
funcs:
- class: srvReq
label: validateSrc
- class: srvReq
label: reqDecrypt
- class: processPckt
label: embeddedProcess
- class: srvReq
label: reqEncrypt
name: Embedded
services:
auth:
cp: EmbeddedAuth
label: authenticate
EmbeddedAuth:
cptype: simple
edges: []
extedges: []
funcs:
- class: srvRsp
label: authenticate
name: EmbeddedAuth
services: {}
HMI:
cptype: simple
edges:
- dstcp: HMI
dstlabel: startMeasure
msgtype: measure
srccp: HMI
srclabel: startThread
- dstcp: HMI
dstlabel: generatePckt
msgtype: generate
srccp: HMI
srclabel: startMeasure
- dstcp: HMI
dstlabel: accelEncrypt
msgtype: encrypt
srccp: HMI
srclabel: generatePckt
- dstcp: HMI
dstlabel: accelDecrypt
msgtype: decrypt
srccp: HMI
srclabel: validateSrc
- dstcp: HMI
dstlabel: processRtn
msgtype: process
srccp: HMI
srclabel: accelDecrypt
- dstcp: HMI
dstlabel: endMeasure
msgtype: measure
srccp: HMI
srclabel: processRtn
- dstcp: HMI
dstlabel: endThread
msgtype: finish
srccp: HMI
srclabel: endMeasure
extedges:
- dstcp: Embedded
dstlabel: validateSrc
msgtype: compute
srccp: HMI
srclabel: accelEncrypt
funcs:
- class: start
label: startThread
- class: measure
label: startMeasure
- class: processPckt
label: generatePckt
- class: processPckt
label: accelEncrypt
- class: srvReq
label: validateSrc
- class: processPckt
label: accelDecrypt
- class: processPckt
label: processRtn
- class: measure
label: endMeasure
- class: finish
label: endThread
name: HMI
services:
auth:
cp: HMIAuth
label: authenticate
HMIAuth:
cptype: simple
edges: []
extedges: []
funcs:
- class: srvRsp
label: authenticate
name: HMIAuth
services: {}
Loading

0 comments on commit e431b8e

Please sign in to comment.