Connects graph controllers with graph models. Graph controllers define a single use of a graph. They pipe data to the model and later act on the output of the model. The model (usually a graph, but can be a dummy class) has the job of aggregating the input from one or more controllers and producing an output for each.
More...
|
virtual void | RegisterController (IGraphController *controller, const char *modelName, float updateRate=cDefaultUpdateRate)=0 |
| Registers a controller to the given model name. If the controller is already registered, it is unregistered and re-registered to the new model. More...
|
|
virtual void | UnregisterController (IGraphController *controller)=0 |
| Unregisters a controller. It will no longer receive output data. More...
|
|
virtual bool | IsControllerRegistered (IGraphController *controller) const =0 |
| Returns true if the controller is registered with us. More...
|
|
virtual void | RegisterAgent (IAgent *agent, IGraphController *controller)=0 |
| Registers an agent for the specified controller. The agent will automatically start new experiences and push observation / action state during Execute(). More...
|
|
virtual void | UnregisterAgent (IAgent *agent)=0 |
| Unregisters an agent More...
|
|
virtual void | RegisterModel (IGraphModel *model, const char *modelName, float updateRate=cUpdateEveryFrameRate)=0 |
| Registers a model with the given name and update rate. If a model with the given name is already registered, this will replace it. More...
|
|
virtual void | RegisterModelFromGraph (IGraph *graph, const char *modelName, float updateRate=cUpdateEveryFrameRate)=0 |
| Registers a graph as a model with the given name and update rate. If a model with the given name is already registered, this will replace it. More...
|
|
virtual void | RegisterModelFromGraphResource (const char *resourceName, const char *modelName, float updateRate=cUpdateEveryFrameRate)=0 |
| Registers a model with the given name and update rate. This will generate a standard model from a graph resource. If a model with the given name is already registered, this will replace it. More...
|
|
virtual void | UnregisterModel (const char *modelName)=0 |
| Unregisters a model. Any connected controllers will no longer receive data. More...
|
|
virtual void | Update (float deltaTime)=0 |
| Advance the models ahead in time, updating controllers as necessary. More...
|
|
virtual void | UpdateController (IGraphController *controller)=0 |
| Updates a controller now. This is the only way to update manually stepped controllers. More...
|
|
virtual void | BeginStreaming (IGraphController *controller)=0 |
| Streaming lets you feed in chunks of data over time into the model. After beginning the stream, the application goes into a loop of set the input on the controller followed by pushing that data to the model. This is useful when setting up a gradient descent trainer because you can reuse a model view that acts on one row of a time to build up the graph input buffers with multiple rows of data. More...
|
|
virtual void | PushStreamData (IGraphController *controller)=0 |
| Pushes whatever inputs are set on the controller into the model. The model will not be cleared during this operation, so the data will be appended to what it currently has. More...
|
|
virtual MatrixIndex | GetStreamingInputRowCount (IGraphController *controller) const =0 |
| Returns the current number of streamed rows currently pushed to the model. If the input buffers have an inconsistent number of rows pushed, this returns -1. More...
|
|
virtual void | EndStreaming (IGraphController *controller)=0 |
| Ends the streaming cycle. The graph will execute any requested outputs. More...
|
|
virtual void | Reset ()=0 |
| Resets all models. More...
|
|
virtual ObjectId | GetId () const =0 |
| Returns the ID of this object. More...
|
|
virtual void | AddRef () const =0 |
| Increments the internal reference count on this object. It is not common to use this method directly. More...
|
|
virtual void | Release () const =0 |
| Decrements the internal reference count on this object. It is not common to use this method directly. More...
|
|
virtual int | GetRefCount () const =0 |
| Returns the number of references to this object. More...
|
|
virtual void * | QueryInterface (ObjectClassId id)=0 |
| Queries the object for an interface and returns a pointer to that interface if found. More...
|
|
void | operator= (IObject const &x)=delete |
|
Connects graph controllers with graph models. Graph controllers define a single use of a graph. They pipe data to the model and later act on the output of the model. The model (usually a graph, but can be a dummy class) has the job of aggregating the input from one or more controllers and producing an output for each.
This class manages the stepping of the controller <-> model flow, letting controllers connect with models in a discoupled manner.