diff options
author | Russell <rcoh@rcoh.(none)> | 2011-01-10 12:21:19 -0500 |
---|---|---|
committer | Russell <rcoh@rcoh.(none)> | 2011-01-10 12:21:19 -0500 |
commit | cbdc42af021f898e82d3e78ce7c636d3fb5eece0 (patch) | |
tree | f36ca72463702c104dd02f026e9fbcd6de3f0da8 /docs | |
parent | 1679719e7ca8ce433c5714474a32c926161dc5b8 (diff) |
Some performance improvements. Faster evaluation of range-based queries with
lambda expressions. Faster exp with approximated fastexp. Some changes to the
component registry.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/designDocs.tex | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/designDocs.tex b/docs/designDocs.tex index 0690d3f..9b47d7d 100644 --- a/docs/designDocs.tex +++ b/docs/designDocs.tex @@ -162,10 +162,10 @@ argument. This will be passed in via recursive inputs.} \item Constants: \texttt{ALL\_CAPS\_WITH\_UNDERSCORES} \end{itemize} \subsection{Time} - For time, use the \texttt{Util.time()} method to return the current + For time, use the \texttt{util.TimeOps.time()} method to return the current time in ms. \subsection{Acessing a Component Given an Id} - Use \texttt{Util.getComponentById(id)}. This provides any + Use \texttt{util.ComponentRegistry.getComponent(id)}. This provides any component access to any other components. We may consider a way to make this read-only. \subsection{Acessing Pixels} @@ -174,7 +174,7 @@ argument. This will be passed in via recursive inputs.} acceptable method. \subsection{Determining the state of a \texttt{Pixel}} The best practice for determining the color of a \texttt{Pixel} is to call - \texttt{lightState} (may be renamed to State TODO). This ensures + \texttt{state}. This ensures all current active responses running on the Pixel contribute correctly. \subsection{Color} For color, use a tuple of (R,G,B) 0-255 for each. Colors can be @@ -182,4 +182,7 @@ argument. This will be passed in via recursive inputs.} \subsection{Locations} Locations are stored (x,y), in whatever unit you light system is in. (Whatever unit you use when you define spacing). + \subsection{Constant Strings (key strings, 'Location', 'Color', etc.)} + Use the util.Strings module. It contains many currently in use + Strings, and ensures consistency. \end{document} |