MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The MgrQueryTime class manages the collection of data queries, and the internal data queue that contains all synchronized data items from the data queries, all fused together. More...
Inherits MyCaffe.db.stream.IXQuery.
Public Member Functions | |
MgrQueryGeneral (string strSchema, List< IXCustomQuery > rgCustomQueries) | |
The constructor. More... | |
void | AddDirectQuery (IXCustomQuery iqry) |
Add a custom query directly to the streaming database. More... | |
void | Reset (int nStartOffset) |
Reset the query to the start date used in Initialize, optionally with an offset from the start. More... | |
void | Shutdown () |
Shutdown the data queries and consolidation thread. More... | |
List< int > | GetQuerySize () |
Returns the query size of the data in the form: [0] = channels [1] = height [2] = width. More... | |
SimpleDatum | Query (int nWait) |
Query the next data in the streaming database. More... | |
byte[] | ConvertOutput (float[] rg, out string type) |
Converts the output values into the native type used by the CustomQuery. More... | |
Dictionary< string, float > | QueryInfo () |
The Query information returns information about the data queried such as header information. More... | |
The MgrQueryTime class manages the collection of data queries, and the internal data queue that contains all synchronized data items from the data queries, all fused together.
Definition at line 18 of file MgrQueryGeneral.cs.
MyCaffe.db.stream.MgrQueryGeneral.MgrQueryGeneral | ( | string | strSchema, |
List< IXCustomQuery > | rgCustomQueries | ||
) |
The constructor.
strSchema | Specifies the database schema. |
rgCustomQueries | Optionally, specifies any custom queries to diretly add. |
The database schema defines the number of custom queries to use along with their names. A simple key=value; list defines the streaming database schema using the following format:
Each param_string specifies the parameters of the custom query and may include the database connection string, database table, and database fields to query.
Definition at line 41 of file MgrQueryGeneral.cs.
void MyCaffe.db.stream.MgrQueryGeneral.AddDirectQuery | ( | IXCustomQuery | iqry | ) |
Add a custom query directly to the streaming database.
By default, the streaming database looks in the
folder relative to the streaming database assembly to look for CustomQuery DLL's that implement the IXCustomQuery interface. When found, these assemblies are added to the list accessible via the schema. Alternatively, custom queries may be added directly using this method.
iqry | Specifies the custom query to add. |
Definition at line 85 of file MgrQueryGeneral.cs.
byte[] MyCaffe.db.stream.MgrQueryGeneral.ConvertOutput | ( | float[] | rg, |
out string | type | ||
) |
Converts the output values into the native type used by the CustomQuery.
rg | Specifies the raw output data. |
type | Returns the output type. |
Definition at line 180 of file MgrQueryGeneral.cs.
List< int > MyCaffe.db.stream.MgrQueryGeneral.GetQuerySize | ( | ) |
Returns the query size of the data in the form: [0] = channels [1] = height [2] = width.
Definition at line 115 of file MgrQueryGeneral.cs.
SimpleDatum MyCaffe.db.stream.MgrQueryGeneral.Query | ( | int | nWait | ) |
Query the next data in the streaming database.
nWait | Specfies the maximum amount of time (in ms.) to wait for data. |
Definition at line 125 of file MgrQueryGeneral.cs.
Dictionary< string, float > MyCaffe.db.stream.MgrQueryGeneral.QueryInfo | ( | ) |
The Query information returns information about the data queried such as header information.
Definition at line 189 of file MgrQueryGeneral.cs.
void MyCaffe.db.stream.MgrQueryGeneral.Reset | ( | int | nStartOffset | ) |
Reset the query to the start date used in Initialize, optionally with an offset from the start.
nStartOffset | Optionally, specifies the offset from the start to use (default = 0). |
Definition at line 94 of file MgrQueryGeneral.cs.
void MyCaffe.db.stream.MgrQueryGeneral.Shutdown | ( | ) |
Shutdown the data queries and consolidation thread.
Definition at line 102 of file MgrQueryGeneral.cs.