When defining channels with InkMLLibJ, the exported InkML is not conform
with the schema. The problem affects the attributes "type" and
"orientation" of the element "channel".
For example the following code :
final TraceFormat traceFormat = new TraceFormat();
final Channel chanX = new Channel("X", ChannelType.INTEGER);
chanX.setUnits("dev");
traceFormat.addChannel(chanX);
final Channel chanY = new Channel("Y", ChannelType.INTEGER);
traceFormat.addChannel(chanY);
chanY.setUnits("dev");
final Channel chanF = new Channel("F", ChannelType.DECIMAL);
chanY.setMin("0.0");
chanY.setMax("1.0");
traceFormat.addChannel(chanF);
final Channel chanOTx = new Channel("OTx", ChannelType.INTEGER);
traceFormat.addChannel(chanOTx);
chanOTx.setMin("-60");
chanOTx.setMax("60");
chanOTx.setUnits("deg");
final Channel chanOTy = new Channel("OTy", ChannelType.INTEGER);
traceFormat.addChannel(chanOTy);
chanOTy.setMin("-60");
chanOTy.setMax("60");
chanOTy.setUnits("deg");
gives the following output with InkMLLibJ :
<traceFormat id='fmt1'><channel name='X' units='dev' defaultValue='0'
type='INTEGER' orientation='POSITIVE' /><channel name='Y' min='0.0'
max='1.0' units='dev' defaultValue='0' type='INTEGER'
orientation='POSITIVE' /><channel name='F' defaultValue='0' type='DECIMAL'
orientation='POSITIVE' /><channel name='OTx' min='-60' max='60' units='deg'
defaultValue='0' type='INTEGER' orientation='POSITIVE' /><channel
name='OTy' min='-60' max='60' units='deg' defaultValue='0' type='INTEGER'
orientation='POSITIVE' /></traceFormat>
See attached file for path proposal.
Nobody/Anonymous
None
None
Public
| Filename | Description | Download |
|---|---|---|
| Channel.java | Proposed patched file | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 339211: Channel.java | 2009-08-14 14:55 | jglimbourg |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use