Simulation.Manager Class Reference

A singleton for managing the simulation at runtime More...

Public Member Functions

Dictionary< string, float > ZeroValuedNeeds (List< string > needNames)
 Get a new Dictionary with the respecitve needs values at 0.0f More...
 
bool UpdateAffordanceTree ()
 Update this Affordance Tree Node, and its children (recursive). Necessary to call for the simulation to work More...
 
bool SetAllNeedSatisfactionWeightsToOne ()
 This essentially turns of the WeightsForNeedSatisfaction, as if they are all one it means when they are multiplied the original values are not changed. More...
 

Properties

static Manager Instance [get]
 This is a singleton More...
 
SimulationData Data [get, set]
 The data loaded into the simulation. More...
 

Detailed Description

A singleton for managing the simulation at runtime

Member Function Documentation

bool Simulation.Manager.SetAllNeedSatisfactionWeightsToOne ( )

This essentially turns of the WeightsForNeedSatisfaction, as if they are all one it means when they are multiplied the original values are not changed.

Returns
true, if there was no issue.
bool Simulation.Manager.UpdateAffordanceTree ( )

Update this Affordance Tree Node, and its children (recursive). Necessary to call for the simulation to work

Dictionary<string, float> Simulation.Manager.ZeroValuedNeeds ( List< string >  needNames)

Get a new Dictionary with the respecitve needs values at 0.0f

Parameters
needNamesThe needs you want to construct the dictionary for
Returns
a dictionary with the value 0.0f for each need.

Property Documentation

SimulationData Simulation.Manager.Data
getset

The data loaded into the simulation.

Manager Simulation.Manager.Instance
staticget

This is a singleton


The documentation for this class was generated from the following file:
  • Manager.cs