From cbdc42af021f898e82d3e78ce7c636d3fb5eece0 Mon Sep 17 00:00:00 2001 From: Russell Date: Mon, 10 Jan 2011 12:21:19 -0500 Subject: Some performance improvements. Faster evaluation of range-based queries with lambda expressions. Faster exp with approximated fastexp. Some changes to the component registry. --- docs/designDocs.tex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs') 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} -- cgit v1.2.3