emergent 8.2.2 UnGpState_cpp Class Reference
emergent 8.2.2   Home · Wiki Docs For: UnGpState_cpp · Emergent Help Browser 

UnGpState_cpp Class Reference

unit group state variables -- for use in computational State code

See for more info: Wiki Docs For: UnGpState_cpp

 #include <UnGpState_cpp>

defined at: /mnt/ssd/grey/local/include/Emergent/UnGpState_cpp.h :29-36

Inherited By: UnGpState_cpp*, UnGpState_cpp&, const UnGpState_cpp, LeabraUnGpState_cpp

Index: SubTypes, Members, Methods, Static Members, Static Methods, Expert Members, Expert Methods

Sub Types


Regular (preferred) Member and Method Documentation

Members

Methods

Method Category: State

Method Category: _NoCategory


Method Documentation

Method Category: State

bool UnGpState_cpp::IsLayerGp ( )

returns true if this is the unitgroup for the entire layer -- otherwise it is a sub-group

Show Source Code

bool UnGpState_cpp::IsSubGp ( )

returns true if this is a sub-group of layer -- otherwise it is the unitgroup for the entire layer -- only layers with unit_groups set have sub groups

Show Source Code

bool UnGpState_cpp::UnIdxInRange ( int un_no )

is unit index in range according to n_units (0 <= idx < n_units)

Show Source Code

Method Category: _NoCategory

LayerState_cpp* UnGpState_cpp::GetLayerState ( NetworkState_cpp* net )

get the owning layer

Show Source Code

UnitState_cpp* UnGpState_cpp::GetUnitState ( NetworkState_cpp* net, int un_idx )

get unit within this unit group at given unit index

Show Source Code

UnitState_cpp* UnGpState_cpp::GetUnitStateSafe ( NetworkState_cpp* net, int un_idx )

get unit within this unit group at given unit index, safe range checking

Show Source Code

void UnGpState_cpp::Initialize_core ( int ugp_dx = -1, int lay_dx = -1, int lay_gp_dx = 0, int un_fl_dx = 0, int n_un = 0 )

Show Source Code

bool UnGpState_cpp::lesioned ( NetworkState_cpp* net )

checks if the owning layer is lesioned

Show Source Code

Static Member and Method Documentation

Static Members

Static Methods


Static Method Documentation


Expert Member and Method Documentation

Expert Members

Expert Member Category: State

Expert Methods


Expert Member Documentation

Expert Member Category: State

UnGpState_cpp::disp_pos_x : int

display position of lower-left start of unit group within layer -- includes spaces

UnGpState_cpp::disp_pos_y : int

display position of lower-left start of unit group within layer -- includes spaces

UnGpState_cpp::layer_gp_idx : int

index of this unit group within layer -1 = layer-level group, and 0..n = sub-unit groups -- use lay->ungp_idx+1 as starting index to deref

UnGpState_cpp::layer_idx : int

index into network state layer that owns this unit group

UnGpState_cpp::n_units : int

number of units in this unit group

UnGpState_cpp::pos_x : int

structural position of lower-left start of unit group within layer -- no spaces etc

UnGpState_cpp::pos_y : int

structural position of lower-left start of unit group within layer -- no spaces etc

UnGpState_cpp::ungp_idx : int

index into network state unit group

UnGpState_cpp::units_flat_idx : int

starting index into flat list of unit state


Expert Method Documentation


Copyright © 2017Regents of the University of Colorado, Carnegie Mellon University, Princeton University.
emergent 8.2.2