Esempio n. 1
0
nest::Subnet::Subnet()
  : Node()
  , nodes_()
  , gids_()
  , label_()
  , customdict_( new Dictionary )
  , homogeneous_( true )
  , last_mid_( 0 )
{
  set_frozen_( true ); // freeze subnet by default
}
Esempio n. 2
0
proxynode::proxynode(index gid, index parent_gid, index model_id, index vp) :
    Node()
{
  set_gid_(gid);
  Subnet* parent = dynamic_cast<Subnet*>(network()->get_node(parent_gid));
  assert(parent);
  set_parent_(parent);
  set_model_id(model_id);
  set_vp(vp);
  set_frozen_(true);
}
proxynode::proxynode( index gid, index parent_gid, index model_id, index vp )
  : Node()
{
  set_gid_( gid );
  Subnet* parent =
    dynamic_cast< Subnet* >( kernel().node_manager.get_node( parent_gid ) );
  assert( parent );
  set_parent_( parent );
  set_model_id( model_id );
  set_vp( vp );
  set_frozen_( true );
}