Documentation
¶
Index ¶
- type DB
- func (db *DB) DeleteAgent(x id.ID)
- func (db *DB) GetAgentOrDie(x id.ID) roagent.RO
- func (db *DB) GetFeatureOrDie(x id.ID) rofeature.RO
- func (db *DB) GetProjectileOrDie(x id.ID) roprojectile.RO
- func (db *DB) ListAgents() <-chan roagent.RO
- func (db *DB) ListFeatures() <-chan rofeature.RO
- func (db *DB) ListProjectiles() <-chan roprojectile.RO
- func (db *DB) QueryAgents(q hyperrectangle.R, filter func(a roagent.RO) bool) []roagent.RO
- func (db *DB) QueryFeatures(q hyperrectangle.R, filter func(a rofeature.RO) bool) []rofeature.RO
- type O
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteAgent ¶
DeleteAgent mutates the DB and must be called serially.
func (*DB) GetAgentOrDie ¶
GetAgentOrDie is a read-only operation and may be called concurrently with other read-only operations.
func (*DB) GetFeatureOrDie ¶
GetFeatureOrDie is a read-only operation and may be called concurrently with other read-only operations.
func (*DB) GetProjectileOrDie ¶
func (db *DB) GetProjectileOrDie(x id.ID) roprojectile.RO
GetProjectileOrDie is a read-only operation and may be called concurrently with other read-only operations.
func (*DB) ListAgents ¶
ListAgents returns all agents in the DB. There are serveral use-cases for this method which changes the invocation pattern.
- Read-only operations on agents may consume this output concurrently.
- Agent-specific mutations should first iterate over the returned values and create a proposal batch of changes. If these changes do not modify the BVH, they may be run in parallel. Changes to the BVH (e.g. SetAgentPosition) must be done serially.
func (*DB) ListFeatures ¶
ListFeatures returns all features in the DB. There are serveral use-cases for this method which changes the invocation pattern.
See ListAgents for more information.
func (*DB) ListProjectiles ¶
func (db *DB) ListProjectiles() <-chan roprojectile.RO
ListProjectiles returns all projectiles in the DB. There are serveral use-cases for this method which changes the invocation pattern.
See ListAgents for more information.
func (*DB) QueryAgents ¶
QueryAgents is a read-only operation and may be called concurrently with other read-only operations.
func (*DB) QueryFeatures ¶
QueryFeatures is a read-only operation and may be called concurrently with other read-only operations.