Title: These materials are prepared only for the students enrolled in the course Distributed Software Development (DSD) at the Department of Computer Science and Engineering, University of M
1NOTICE!
- These materials are prepared only for the
students enrolled in the course Distributed
Software Development (DSD) at the Department of
Computer Science and Engineering, University
of Mälardalen, Västerås, Sweden and at the
Faculty of Electrical Engineering and Computing,
University of Zagreb, Croatia (year 2003/2004). - For all other purposes, authors written
permission is needed! - The purpose of these materials is to help
students in better understanding of lectures in
DSD and not their replacement!
2Selected Topics in Software Engineering -
Distributed Software Development
3ASN.1 to CSV converter generator
Project Current state presentation 2008-12-04
- MDH
- Guido Di Campli
- Giovanni Piemontese
- Paolo DAmelio
- FER
- Ivan Škugor
- Željko Krpetic
- Željko Kneževic
Steering group Igor Cavrak at FER Rikard Lang
at MDH M.Sc. Branko Beslac (Ring datacom)
4What we will talk about?
- Current status for
- eSNACC / custom code generator solution
- XSL generator
- Tree view generator
- BER to XML conversion
- GUI
- General project status
5BER to CSV converter structure
Done (eSNACC)
Done
Work in progress
6Sample output
- void parse_nrtrde()
- / Init variables /
- ....
- nrtrde pr
- if (nrtrde-gtcallEvents NULL) return
- node nrtrde-gtcallEvents-gtfirst
- do
- recordCount
- callEvent node-gtdata
- switch (callEvent-gtchoiceId)
- case CALLEVENT_MOC
- moc callEvent-gta.moc
- / RECORD_TYPE /
- s sprintf(sql,"1, ")
- / O_P_MSISDN /
- if (PRESENT(moc-gtconnectedNumber))
- PRINT(moc-gtconnectedNumber)
- else if (PRESENT(moc-gtdialledDigits))
7eSNACC / custom code generator solution status
- Work on code generator algorithm
- Learn more about ASN.1 and eSNACC
- More testing on paper
- Final implementation (C)
- GUI lt-gt Code generator interface
8XSL generator
9Code generator/XSL generator
- XSLT
- Converts XML to other format (even a CSV?)
- We use it because its fast and simple to use
- ANSI C compilant
- Its extendible
10Example of generated XSL
- ltxslstylesheet version"1.0" xmlnsxsl"http//ww
w.w3.org/1999/XSL/Transform"gt - ltxsloutput method"text"/gt
- ltxsltemplate match"/"gt
- ltxslapply-templates select"/Nrtrde/specificati
onVersionNumber"/gt - ltxslapply-templates select"/Nrtrde/releaseVers
ionNumber"/gt - lt/xsltemplategt
- ltxsltemplate match"/Nrtrde/specificationVersionN
umber"gt - ltxslvalue-of select"."/gt
- ltxslvalue-of select"','"/gt
- lt/xsltemplategt
- ltxsltemplate match"/Nrtrde/releaseVersionNumber"
gt - ltxslvalue-of select"."/gt
- lt/xsltemplategt
- lt/xslstylesheetgt
11ASN1 to XML (1/3)
12ASN1 to XML (2/3)
13ASN1 to XML (3/3)
14BER to XML (1/3)
15BER to XML (2/3)
16BER to XML (3/3)
17GUI Status 1/3
GUI Features Status
Load XML in Treeview Ready
Select/Deselect elements on treeview Ready
Expand/Collapse elements on treeview Ready
Colors view on treeview Ready
Add Grammars using treeview Ready
Store information in Xpath Format Needs improvements
Output panel Probably it needs add-on
General GUI functionalities Needs improvements
Format panel selection Not started
Cleaner Ready
18GUI Status 2/3
Done
Almost done or needs improvements
Not Done
19GUI Status 3/3
Done
Almost done or needs improvements
Not Done
20Treeview and colors meaning
No nodes selected
Parents have one/different unchecked nodes
All childs are selected or node has no child
21What we will do about GUI
- Solving some Bugs (if is possible)
- Enrich information about selected grammars
- Add Format PanelBox
- Graphic improvements
- Testing
22GUI screenshot
23General project status
Project status on track
Activity w45 w46 w47 w48 w49 w50 w51 w52 w1 w2 w3
Project plan
Requirements analysis definition
System Design
Tree view generator
Converter generator
GUI
Integration
Testing
Final Product
24