CIP4 Web Server Development
Download
Report
Transcript CIP4 Web Server Development
CIP4 JDF APIs
JDF Editor
Elena Skobchenko
Overview
• The CIP4 JDF APIs
– Java
– C++
– Documentation
• JDF Tools
– CheckJDF
– JDF Editor
CIP4 JDF APIs
Implementation of the JDF Specification
JDFLib
C++
Java
JDF Library C++
High level
JDF Wrapper Lib
Implementation of the JDFSpecification
Low level
JDF Wrapper Core Lib
Kelement, XMLDoc, Parser, DataTypes defined in JDF
JDF Tools Lib
Corresponding Java packages : lang, io, mime, util, net
JDF Library Java
High level
Package
org.cip4.jdflib
Implementation of the JDFSpecification
Low level
org.cip4.jdflib.core - Kelement, XMLDoc, JDFParser
org.cip4.jdflib.datatypes - dataTypes defined in JDF
JDFSchema – Generator - Auto files
• Almost every high level class has a corresponding Auto generated class, e.g.
JDFJMF – JDFAutoJMF
JDFMedia – JDFAutoMedia
• With the new release of JDF Schema Auto files are usually replaced
with new Auto files. (Any changes in Auto files will be lost)
JDF Schema
JDFSpecifcation in
XML code
Generator
XML to C++ code
Auto files C++
Generator
XML to JAVA code
Auto files JAVA
e.g. JDFAutoJMF
e.g. JDFAutoJMF
JDFLib Package structure
JDF Node
JDFLib (JDFWrapper)
JDF JMF
JDF Resources
editable
JDF Device Capability
JDF Core
Auto
auto generated classes
not editable !
C++
Documentation,
Sample Applications
• JDF Library Class Overview
• Doxygen documentation
• FAQs
• Installation Manual
• Help instructions “How to…”
• Code Samples (JDFExample)
the best starting point
JDF Tools
1. Check JDF
•
•
•
Validation
User settable parameters
Device Capabilities test
2. JDF Editor
•
•
•
•
•
•
•
•
•
Graphic User Interface
JDF Tree View
JDF Process View
JDF Resource View (In & Output)
Editing, Spawn, Merge
Validation
FixVersion
Send JMF
Device Capabilities Support
Check JDF
• Tests one or more JDF files
• Looks for Invalid Elements and Attributes
• Tests their Cardinality
• For every type of Job tests input and output resources
– Missing
– Unknown
– Invalid
• Tests every pair “ResourceRef - Resource”,
“ResourceLink - Resource” :
– looks for invalid references
– checks their location in the tree
• Looks for duplicate elements and duplicate ID entries
and more…
Check JDF
• Input
– JDF files to test
– User Parameters (Optional)
• Validation options
• Schema location
• Show elements and attributes in foreign namespaces …
– Device Capability file to test against (Optional)
• Output
– Error report in console window
– Error report in XML form (in Java Version CheckJDF)
JDF Editor
• Tree view
– Hierarchical job representation
– Easy navigation, “Find” option
– Icons for Links, Refs…
– Highlight of the elements and
attributes in private namespaces
– Edition
– “Copy” “Cut” “Paste” options
– Insert and Auto insert of the
required attributes and
elements
– Spawn and Merge functions
– Device Capabilities
and more…
JDF Editor
• Process view
• graphical representation of the processes
• Short description of the Process and Input&Output Resources
• Parallel shows active element in the tree
JDF Editor
• Input & Output Resource View
• Shows the processes that consume and/or produce
the chosen resource
• Reflects its position in a Tree View
JDF Editor
• Validation & Error View
• Validates JDF and displays errors in an Error View
• Highlights invalid elements/attributes in a Tree View
Info
• CIP4 APIs, JDFEditor and CheckJDF
– www.cip4.org/open-src/download
• Forum – T&I Working Group
• Questions?
Thank you
for your attention!
Elena Skobchenko
Solution Management