Share

InkMLTk

Tracker: Bugs

5 [InkMLLibJ] : channel attributes type and orientation wrong - ID: 2837692
Last Update: Attachment added ( jglimbourg )

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.


Jean-Gabriel LIMBOURG ( jglimbourg ) - 2009-08-14 14:55

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
Channel.java Proposed patched file Download

Change ( 1 )

Field Old Value Date By
File Added 339211: Channel.java 2009-08-14 14:55 jglimbourg