设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4744|回复: 1

[求助] repast s 建模中遇到的网络结构的问题

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解
/ T* L( B, o8 n8 }$ M! l写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂
9 q4 M2 A$ ?! w% A% X9 V
( W& b) M& h1 u有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
: ~4 O4 c% A' u8 T; v* V8 [3 l+ G1 V+ K7 @) U$ i
感谢感谢
- P' Q8 l" `9 L/ U( ]错误如下:* {& [: k8 H1 ^9 {
& M$ `% h0 u1 b* E. F
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
$ h9 ~) f6 F6 {1 J        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)/ ^1 W- @8 s7 K1 b4 A$ S3 }
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)
3 l: o  {5 }+ k( e6 Q: ]; ]        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)! @. o" W, x, p1 `! @* C% Y
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)  W3 @9 q) {8 _. X5 s+ K" C
        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)$ A8 I* F3 Y( S$ W- c9 l# ~
        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
2 P6 Y2 U$ r4 o' D) t7 p$ ?, C        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)5 d3 O# n; n* _! Z: c  R
        at java.lang.Thread.run(Unknown Source)
! K6 J4 a' t: Z) U8 g! P6 fCaused by: java.lang.NullPointerException
$ w: t( f# U2 w4 Z        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)
9 w: k, x" S  l( V1 o        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
. H  d- O; ]) z# j2 g: o        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
* J( L" l0 x1 }6 k' g' w9 u% b        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)
7 `; N! k6 _2 e        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)$ j' k# f( j. d9 w% _* n# D
        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)7 {5 c5 ~8 \5 C2 b5 n4 w
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)
$ b7 V9 ?8 b% D        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)  P" G' `2 [9 e) ?
        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)2 d# F9 v" w4 |- O% ~% X
        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
2 z4 Z2 s4 C. o        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
& @) X3 u. a1 x( O* T# e; e        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)5 d# \% c/ {+ M  I6 `7 M5 I
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)1 z+ W' S  ~$ w
        at java.awt.EventQueue.dispatchEvent(Unknown Source)% D! E4 C  }) ]' G, R
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
: ?1 O1 q! T( U. X        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source); h) o8 r3 E+ y5 h
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)0 N/ ?& ~! H- J( a! N& }
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)6 `( t, B3 _; l1 n! F& C3 H
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)' ^; x( G' a8 M6 I
        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-1-21 15:36 , Processed in 0.017615 second(s), 16 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表