设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4745|回复: 1

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

[复制链接]
发表于 2011-8-14 15:50:58 | 显示全部楼层 |阅读模式
最近在用repast s 建模做供应链管理的问题,对于repast s 中网络结构的使用很不了解; C" X5 c0 b# y6 C# l6 D
写完代码之后编译出现错误,应该是显示方面的错误,我实在弄不懂) F3 a7 B9 q2 ^  v+ G; }4 E' H

/ w2 T& `% P3 l& w$ }有没有哪位牛人帮我看看错误,或者给我个适用network结构的demo让我学习下
2 p$ O/ h& B( v7 c) ^( L9 q# I( \1 @9 p0 ^' Q, G# @5 l- j
感谢感谢
: @' J8 t" a3 K& R5 T: p- K错误如下:
( \& _  H6 B/ W" c' v) h7 c- O% H' i5 c# ?, b1 [
Exception in thread "Thread-4" javax.media.opengl.GLException: java.lang.NullPointerException
" W5 F& }% l8 \# `* k. l* _        at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:271)  B/ `  e: j9 Q
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:410)5 i7 @$ q; Q3 A0 h# `: U
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:244)5 N6 T" N5 J$ t. Q0 K
        at saf.v3d.Canvas2D.update(Canvas2D.java:113)$ }  \& O0 p  }: c6 `3 O4 g1 P+ Q( A
        at repast.simphony.visualizationOGL2D.DisplayOGL2D.setPause(DisplayOGL2D.java:358)
- M1 Y$ d5 X5 J8 W1 g+ Q0 Z, r        at repast.simphony.render.RendererManager.setPause(RendererManager.java:57)
) U  D, H3 h9 ~0 j  c        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:46)
) ?6 R& W5 ~! C$ O+ G/ h0 I6 v3 r        at java.lang.Thread.run(Unknown Source)4 ~" e2 M' q5 X, r3 [9 `+ i
Caused by: java.lang.NullPointerException
; ~. W3 u' E8 {# N8 P        at saf.v3d.scene.VEdge2D.doGetBoundingSphere(VEdge2D.java:130)$ P3 ?/ |) {* N# G3 N
        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)
7 B& }" ^: I5 t: O5 p  _        at saf.v3d.scene.VComposite.doGetBoundingSphere(VComposite.java:88)5 n1 F  c6 t0 }
        at saf.v3d.scene.VRoot.doGetBoundingSphere(VRoot.java:56)8 Z) u0 i8 T1 \1 G/ v  D
        at saf.v3d.scene.VSpatial.getBoundingSphere(VSpatial.java:439)
! f2 \. k) j' Y% ]) k5 d* m        at saf.v3d.scene.Camera.resetAndCenter(Camera.java:58)1 o2 ]# V% o# o! R- |( {4 b
        at saf.v3d.Canvas2D.centerScene(Canvas2D.java:273)
" [" X1 |( N* d" Z        at saf.v3d.Canvas2D.reshape(Canvas2D.java:302)
$ D0 x& H0 q% t% t6 q        at com.sun.opengl.impl.GLDrawableHelper.reshape(GLDrawableHelper.java:85)
6 i! t) X3 }% J1 c1 u  I5 a) o        at javax.media.opengl.GLCanvas$DisplayAction.run(GLCanvas.java:431)
: V0 n4 D/ ~  T$ I5 z3 e        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:194)
( A& S0 a6 U7 m# ^% i4 ^        at javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:452)( d- C; v' U" @0 s3 v: V
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
0 Y( t2 |/ s: z2 Q; M        at java.awt.EventQueue.dispatchEvent(Unknown Source)
& {$ M/ H) F, Z6 ^        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)2 u; y; M& x; J3 H3 k3 t
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)$ T  p7 Y+ I- z. a; Q8 D
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)& j) s; n) B# ~3 R- @
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source); E+ _( S. u& |& Q7 y+ X
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
+ \: b) g1 o$ ?        at java.awt.EventDispatchThread.run(Unknown Source)
发表于 2012-10-12 17:42:55 | 显示全部楼层
源代码贴上来看一下
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-1-21 15:37 , Processed in 4.650593 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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