public Vertex( int handler, VertexConfig conf ) { this.vertHandler = handler; this.config = conf; this.initMemory(); }
/// /// Default construcor /// public MainForm() { this.InitComponents(); this.sConf = new SessionConfig( Defaults.Delay, Defaults.sessionCount, Defaults.sessionGenLimit ); this.nConf = new NetworkConfig( Defaults.HNodes, Defaults.VNodes ); this.vConf = new VertexConfig( Defaults.Buffer, Defaults.Base, Defaults.GenLimit, Defaults.MaxLoadRatio, null // the routing function depends on the network ); //this.initSimulation(); }
public Network(int x, int y, int _base, int buffer, int genLimit, float maxLoadRatio, bool djekstra) { this.xDim = x; this.yDim = y; this.msgList = new MessageList(); this.vertexList = new VertexList(x * y); this.edgeList = new EdgeList((x-1)*y + (y-1)*x); if ( djekstra ) { this.vrtConfig = new VertexConfig( buffer, _base,genLimit, maxLoadRatio, this.findRouteD ); this.initVertexList(); this.initEdgeList(); // initializing the incidency matrix variable with dimensions edges x vertices this.incidencyMatrix = new AsociatedMatrix<sbyte>( this.vertexList.TheList, this.edgeList.TheList ); } else { this.vrtConfig = new VertexConfig( buffer, _base,genLimit, maxLoadRatio, this.findRouteC ); this.initVrtListCoord( x, y ); this.initEdgeListCoord(); } }
public Vertex( int handler, VertexConfig conf, int _x, int _y ) { this.vertHandler = handler; this.config = conf; this.x = _x; this.y = _y; this.initMemory(); }
public SettingsForm( SessionConfig _sConf, NetworkConfig _nConf, VertexConfig _vConf ) { this.InitComponents(); this.sConf = _sConf; this.nConf = _nConf; this.vConf = _vConf; // this.setValues(); }
public Network(NetworkConfig netcfg, VertexConfig vrtcfg/*, bool djekstra*/) { this.netConf = netcfg; int x = netConf.HNodes; int y = netConf.VNodes; this.msgList = new MessageList(); this.vertexList = new VertexList(x * y); this.edgeList = new EdgeList((x-1)*y + (y-1)*x); // if !djekstra vrtcfg.RouteFunc = this.findRouteC; this.vrtConfig = vrtcfg; this.initVrtListCoord(x, y); this.initEdgeListCoord(); }