You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+9-7
Original file line number
Diff line number
Diff line change
@@ -56,14 +56,14 @@
56
56
57
57
<!-- Title Block -->
58
58
<h1class='title'>Haystack Java Toolkit</h1>
59
-
<h2id='overview'>Overview</h2>
59
+
<h2id='overview'>Overview</h2>
60
60
61
61
<p><ahref='http://project-haystack.org/'>Project Haystack</a> defines a tagging model and REST API for sensor systems such as HVAC, lighting, and energy equipment. This toolkit provides a simple, small Java API for working with haystack:</p>
62
62
63
63
<ul>
64
64
<li><strong>Modeling</strong>: APIs for modeling tags values and grids</li>
65
65
66
-
<li><strong>Formats</strong>: encoding and decoding of grids using Zinc, CSV, etc</li>
66
+
<li><strong>Formats</strong>: encoding and decoding of grids using Zinc, JSON, CSV, etc</li>
67
67
68
68
<li><strong>Filter</strong>: Haystack query language AST and parser</li>
<p>All code is written to work with Java 1.4 and J2ME (no use of newer Java features such as generics). This code is all open sourced under the Academic Free License version 3.0 (same license used as Project Haystack).</p>
76
76
77
-
<h2id='vals'>HVal APIs</h2>
77
+
<h2id='vals'>HVal APIs</h2>
78
78
79
79
<p>The <code>HVal</code> class is the common base class for classes used to model the scalar values of <ahref='http://project-haystack.org/doc/TagModel#tagKinds'>tag kinds</a>:</p>
80
80
@@ -98,11 +98,13 @@ <h2 id='vals'>HVal APIs </h2>
98
98
<li><code>HDateTime</code>: date time with timezone offset and timezone name</li>
<li><code>HCoord</code>: geographic coordinate as latitude and longitute</li>
101
103
</ul>
102
104
103
105
<p>All <code>HVal</code> classes are immutable, once created they cannot be modified.</p>
104
106
105
-
<h2id='dict'>HDict API</h2>
107
+
<h2id='dict'>HDict API</h2>
106
108
107
109
<p>The <code>HDict</code> class models a set of tag name/value pairs. The tag names are modeled as <code>String</code> and values as <code>HVal</code>. The <code>HDict</code> class is immutable, once an instance is created it cannot be modified. Use <code>HDictBuilder</code> to build an immutable <code>HDict</code> instance:</p>
108
110
@@ -128,7 +130,7 @@ <h2 id='dict'>HDict API </h2>
128
130
HVal val = (HVal)e.getValue();
129
131
}</pre>
130
132
131
-
<h2id='grid'>HGrid API</h2>
133
+
<h2id='grid'>HGrid API</h2>
132
134
133
135
<p>The <code>HGrid</code> class models a <ahref='http://project-haystack.org/doc/Grids'>Haystack grid</a>. A grid is composed</p>
134
136
@@ -172,7 +174,7 @@ <h2 id='grid'>HGrid API </h2>
172
174
HRow row = grid.row(i);
173
175
}</pre>
174
176
175
-
<h2id='client'>HClient API</h2>
177
+
<h2id='client'>HClient API</h2>
176
178
177
179
<p>The <code>HClient</code> class is used to communicate over HTTP to a Haystack server via the <ahref='http://project-haystack.org/doc/Rest'>REST API</a>.</p>
178
180
@@ -185,7 +187,7 @@ <h2 id='client'>HClient API </h2>
185
187
// read all records that have "site" tag
186
188
HGrid sites = client.readAll("site");</pre>
187
189
188
-
<h2id='server'>HServer API</h2>
190
+
<h2id='server'>HServer API</h2>
189
191
190
192
<p>The <code>HServer</code> class provides infrastructure to add server side support for the <ahref='http://project-haystack.org/doc/Rest'>Haystack REST API</a>.</p>
0 commit comments