Диссертация (Агентная модель поведения толпы в условиях чрезвычайной ситуации для оценки интенсивности фронта выходного потока), страница 62
Описание файла
Файл "Диссертация" внутри архива находится в папке "Агентная модель поведения толпы в условиях чрезвычайной ситуации для оценки интенсивности фронта выходного потока". PDF-файл из архива "Агентная модель поведения толпы в условиях чрезвычайной ситуации для оценки интенсивности фронта выходного потока", который расположен в категории "". Всё это находится в предмете "технические науки" из Аспирантура и докторантура, которые можно найти в файловом архиве НИУ ВШЭ. Не смотря на прямую связь этого архива с НИУ ВШЭ, его также можно найти и в других разделах. , а ещё этот архив представляет собой кандидатскую диссертацию, поэтому ещё представлен в разделе всех диссертаций на соискание учёной степени кандидата технических наук.
Просмотр PDF-файла онлайн
Текст 62 страницы из PDF
d a t a b a s e . g e t R e s u l t S e t ( " S e l e c t S q u a r e f r o m s q u a r e w h er e Age= " + I n t e g e r . t o S t r i n g ( ag e ) ) ; / / за п р о с площадико р и зо н т а л ь н о й п р о екц и и и з базы данныхwhile ( r s_ sq u a r e . next ( ) ) {s e t _ s ( Math . pow ( main . s c a l e . t o P i x e l s ( 1 , LENGTH_UNIT_METER ) , 2 ) ∗ r s _ s q u a r e . g e t D o u b l e ( " S q u a r e " ) ) ;}i f ( ( s t a t u s == S t a t u s .
a l i v e ) | | ( s t a t u s == S t a t u s . k i l l e d ) ) { / / установка площади го р и зо н т а л ь н о й п р о екц и иs_t = s ;} e l s e i f ( s t a t u s == S t a t u s . d i s o r i e n t e d ) {s _ t = main . si g m a_ 2∗s ;} e l s e i f ( s t a t u s == S t a t u s . i n j u r e d ) {s _ t = main . si g m a_ 1∗s ;}R e s u l t S e t r s _ v e l = main . d a t a b a s e . g e t R e s u l t S e t ( " S e l e c t C o m f o r t a b l e , Max _ g ai t , Max_run f r o m v e l o c i t y w h er e Age= " + I n t e g e r . t o S t r i n g ( ag e ) + " andG en d er= " + I n t e g e r .
t o S t r i n g ( g e n d e r . o r d i n a l ( ) ) ) ; / / за п р о с скоростей и з базы данныхw h i l e ( r s _ v e l . n e x t ( ) ) { / / установка скоростейs e t _ v _ c o m f ( main . s c a l e . t o P i x e l s ( r s _ v e l . g e t D o u b l e ( " C o m f o r t a b l e " ) , LENGTH_UNIT_METER ) / main . m o d el _ seco n d ) ;set _ v _ m ax ( main .
s c a l e . t o P i x e l s ( r s _ v e l . g e t D o u b l e ( " Max _ g ai t " ) , LENGTH_UNIT_METER ) / main . m o d el _ seco n d ) ;s e t _ v _ h a t _ m a x ( main . s c a l e . t o P i x e l s ( r s _ v e l . g e t D o u b l e ( " Max_run " ) , LENGTH_UNIT_METER ) / main . m o d el _ seco n d ) ;}s e t V e l o c i t y ( v_comf ) ; / / установка текущей скоростиv = getVelocity () ;}/ ∗∗∗ П р и св о ен и е н а ч а л ь н ы х з н а ч е н и й простым переменным<br>∗ <em> T h i s m et h o d i s n ’ t d e s i g n e d t o be c a l l e d by u s e r and may be rem o ved i n f u t u r e r e l e a s e s .
< / em>∗/@ A n y Lo g i cI n t er n al Co d eg en A P Ip u b l i c void s e t u p P l a i n V a r i a b l e s _ x j a l ( ) {setupPlainVariables_Person_xjal () ;2731650}1655/ ∗∗∗ П р и св о ен и е н а ч а л ь н ы х з н а ч е н и й простым переменным<br>∗ <em> T h i s m et h o d i s n ’ t d e s i g n e d t o be c a l l e d by u s e r and may be rem o ved i n f u t u r e r e l e a s e s . < / em>∗/@ A n y Lo g i cI n t er n al Co d eg en A P Ip r i v a t e void s et u p P l ai n V ar i ab l es _ P e r so n _ x j al ( ) {d_x =16600;d_y =0;D_x =1665 0;D_y =0;1670x =0;y =01675 ;rho =0;r h o _ k = new d o u b l e [ ]1680 { 0 , 0 , 0 , 0 };t_1 =0;1685t_2 =0;t_3 =01690 ;delta =0;v =1695 0;x_exit =0;1700y_exit =0;d e l t a _ k = new d o u b l e [ ]{0 ,0 ,0 ,0}1705 ;varsigma =0;varrho_3 =1710 0;varrho_4 =0;1715n_expl =0;s_t =01720 ;d_x_new =0;d_y_new =1725 0;v_new =0;1730}2741735/ / API п о л ь зо в а т ел я −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−p u b l i c Main g et _ Mai n ( ) {{A g en t owner = g et O w n er ( ) ;i f ( owner i n s t a n c e o f Main ) r e t u r n ( Main ) owner ;}return null ;}17401745/ ∗∗∗ Переменная только дл я чтения .
<em>З н а ч ен и е п ер ем ен н о й не должно изменяться п о л ь зо в а т ел ем . < / em>∗/@ A n y L o g i c C u s t o m S e r i a l i z a t i o n ( A n y L o g i c C u s t o m S e r i a l i z a t i o n M o d e . REFERENCE )p u b l i c t r a n s i e n t crowd . Main main ;@ A n y Lo g i cI n t er n al Co d eg en A P Is t a t i c L i n k T o A g e n t A n i m a t i o n S e t t i n g s _ c o n n e c t i o n s _ c o m m o n A n i m a t i o n S e t t i n g s _ x j a l = new L i n k T o A g e n t A n i m a t i o n S e t t i n g s I m p l ( f a l s e , b l a c k , 1 . 0 ,LINE_STYLE_SOLID , ARROW_NONE, 0 . 0 ) ;1750p u b l i c L i n k T o A g e n t C o l l e c t i o n <Agent , Agent > c o n n e c t i o n s = new L i n k T o A g e n t S t a n d a r d I m p l <Agent , Agent >( t h i s ,_connections_commonAnimationSettings_xjal ) ;@ O v er r i d ep u b l i c L i n k T o A g e n t C o l l e c t i o n <? e x t e n d s Agent , ? e x t e n d s Agent > g e t L i n k T o A g e n t S t a n d a r d _ x j a l ( ) {return connections ;}175517601765177017751780178517901795180018051810@ A n y Lo g i cI n t er n al Co d eg en A P Ip u b l i c v o i d d r aw Li n k sTo A g e n t s ( b o o l e a n _ u n d e r A g e n t s _ x j a l , Li n k To A g en t A n i m at o r _ a n i m a t o r _ x j a l ) {s u p e r .
d r aw Li n k sTo A g e n t s ( _ u n d e r A g e n t s _ x j a l , _ a n i m a t o r _ x j a l ) ;i f ( _underAgents_xjal ) {_ a n i m a t o r _ x j a l . d r aw Li n k ( t h i s , c o n n e c t i o n s , t r u e , t r u e ) ;}}p u b l i c A g e n t L i s t <? e x t e n d s P er so n > g e t P o p u l a t i o n ( ) {r e t u r n ( A g e n t L i s t <? e x t e n d s P er so n >) s u p e r . g e t P o p u l a t i o n ( ) ;}p u b l i c L i s t <? e x t e n d s P er so n > a g e n t s I n R a n g e ( d o u b l e d i s t a n c e ) {r e t u r n ( L i s t <? e x t e n d s P er so n >) s u p e r .
a g e n t s I n R a n g e ( d i s t a n c e ) ;}/ / Действие при и зм ен ен и и −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−p u b l i c v o i d onChange ( ) {s u p e r . onChange ( ) ;s t _ d i s o r i e n t e d . onChange ( ) ;s t _ i n j u r e d . onChange ( ) ;s t _ k i l l e d .
onChange ( ) ;t _ c h a n g e . onChange ( ) ;s i t _ c h a n g e _ 2 . onChange ( ) ;s i t _ c h a n g e _ 1 . onChange ( ) ;s i t _ c h a n g e _ 0 . onChange ( ) ;z e t a . onChange ( ) ;remove . onChange ( ) ;c r o s s . onChange ( ) ;comeback . onChange ( ) ;}@ A n y Lo g i cI n t er n al Co d eg en A P Ip u b l i c void onDestroy ( ) {s t _ d i s o r i e n t e d . onDestroy ( ) ;s t _ i n j u r e d . onDestroy ( ) ;s t _ k i l l e d . onDestroy ( ) ;t_change .
onDestroy ( ) ;sit_change_2 . onDestroy ( ) ;sit_change_1 . onDestroy ( ) ;sit_change_0 . onDestroy ( ) ;z e t a . onDestroy ( ) ;remove . o n D e s t r o y ( ) ;c r o s s . onDestroy ( ) ;comeback . o n D e s t r o y ( ) ;super . onDestroy ( ) ;}/ / Дополнительный к л а с с кодаf i n a l d o u b l e moveCoef = 1 0 0 ;/ / Конец до п о л н и т ел ь н о го к л а с с а кода/ ∗∗∗ Это ч и сл о и с п о л ь з у е т с я при со хр а н ен и и состояния модели .
П о л ь зо в а т ел ь не должен изменять е г о з н а ч е н и е .∗/275@ A n y Lo g i cI n t er n al Co d eg en A P Ip r i v a t e s t a t i c f i n a l l o n g s e r i a l V e r s i o n U I D = −8500531886192933761 L ;1815 }276Приложение ДКласс взрываД.1 Скрин класса взрываД.2 Листинг кода класса взрываp a c k a g e crowd ;import5 importimportimportimportimport10 i m p o r timportimportimportimport15 i m p o r timportimportimportimport20 i m p o r timportimportimportimport25 i m p o r timportimportimportjavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajavajava.........................io .
S er i al iz ab le ;s q l . Connection ;s q l . S Q LEx cep t i o n ;u t i l . A r r ay D eq u e ;u t i l . ArrayList ;u t i l . Arrays ;u t i l . Calendar ;ut i l . Collection ;ut il . Collections ;u t i l . Comparator ;u t i l . Currency ;u t i l . D at e ;u t i l . Enumeration ;u t i l . HashMap ;u t i l . H ash S et ;u t i l . Hashtable ;util .
Iterator ;u t i l . LinkedHashMap ;u t i l . LinkedHashSet ;u t i l . LinkedList ;ut il . List ;util . ListIterator ;u t i l . Locale ;u t i l . Map ;u t i l . PriorityQueue ;277import30 i m p o r timportimportimportimport35 i m p o r timportimportimportimport40 i m p o r timportimportimportimport45 i m p o r timportimportj a v a . u t i l . Random ;java . u t i l . Set ;j a v a . u t i l . S o r t ed Map ;java .
u t i l . SortedSet ;java . u t i l . Stack ;j a v a . u t i l . Ti m er ;j a v a . u t i l . TreeMap ;java . u t i l . TreeSet ;java . u t i l . Vector ;j a v a . awt . C o l o r ;j a v a . awt . F o n t ;j a v a . awt . G r ap h i cs2 D ;j a v a . awt . geom . A f f i n e T r a n s f o r m ;com . x j . a n y l o g i c . e n g i n e . c o n n e c t i v i t y . R e s u l t S e t ;com .
x j . a n y l o g i c . e n g i n e . c o n n e c t i v i t y . S t a t e m e n t ;com . x j . a n y l o g i c . e n g i n e . markup . Network ;com . x j . a n y l o g i c . e n g i n e . P o s i t i o n ;com . x j . a n y l o g i c . e n g i n e .
markup . P e d F l o w S t a t i s t i c s ;com . x j . a n y l o g i c . e n g i n e . markup . D en si t y Map ;import50 i m p o r timportimportimportstaticstaticstaticstaticstatic55 i m p o r timportimportimportimport60importimportimportimport65importcom .com .com .com .com .xjxjxjxjxjstaticstaticstaticstaticjavacom .com .com .com ....... l a n g . Math . ∗ ;xj . anylogic . engine . U t i l i t i e sA r r ay .∗;xj .
anylogic . engine . p res ent at i on . U t i l i t i e s C o l o r .∗;xj . anylogic . engine . p res ent at i on . U til itiesDrawin g .∗;x j . a n y l o g i c . e n g i n e . H y p er A r r ay . ∗ ;anylogic .anylogic .anylogic .anylogic .anylogic .engine .∗;engine . anal ys is .∗;engine .
con necti vi ty .∗;e n g i n e . markup . ∗ ;engine . p resen t at io n .∗;crowd . G en d er . ∗ ;crowd . S t a t u s . ∗ ;crowd . S i t u a t i o n . ∗ ;crowd . E x i t . ∗ ;j a v a . awt . geom . Arc2D ;p u b l i c c l a s s E x p l o s i o n e x t e n d s A g en t{70/ / Параметры/ ∗∗∗ Параметр e p s i l o n 0∗/75publicdouble ep si l o n 0 ;/ ∗∗∗ Возвращает з н а ч е н и е по умолчанию параметра <code > e p s i l o n 0 </ code > .∗ <i >П о л ь зо в а т ел ь не должен вызывать этот метод </ i >∗/@ A n y Lo g i cI n t er n al Co d eg en A P Ip u b l i c double _ ep si l o n 0 _ D ef au l t V al u e_ x j al ( ) {f i n a l Explosion s e l f = t h i s ;return80855;}9095100105110p u b l i c void s e t _ e p s i l o n 0 ( double ep si l o n 0 ) {i f ( e p s i l o n 0 == t h i s .
e p s i l o n 0 ) {return ;}double _oldValue_xjal = t h i s . ep si l o n 0 ;thi s . epsilon0 = epsilon0 ;onChange_epsilon0_xjal ( _oldValue_xjal ) ;onChange ( ) ;}/ ∗∗∗ C a l l s " On ch a n g e " a c t i o n f o r p a r a m e t e r e p s i l o n 0 . < br>∗ No t e t h a t ’ o l d V a l u e ’ i n t h a t a c t i o n w i l l be u n a v a i l a b l e i f t h i s m et h o d i s c a l l e d by u s e r∗ ( c u r r e n t p a r a m e t e r v a l u e w i l l be p a s s e d a s ’ o l d V a l u e ’ ) . < br >∗ P l e a s e c a l l <code > s e t _ e p s i l o n 0 ( ) </ code > m et h o d i n s t e a d .∗/void onChange_epsilon0 ( ) {onChange_epsilon0_xjal ( epsilon0 ) ;}@ A n y Lo g i cI n t er n al Co d eg en A P I278void onChange_epsilon0_xjal ( double oldValue ) {}115/ ∗∗∗ Параметр e p s i l o n 1∗/publicdouble ep si l o n 1 ;120/ ∗∗∗ Возвращает з н а ч е н и е по умолчанию параметра <code > e p s i l o n 1 </ code > .∗ <i >П о л ь зо в а т ел ь не должен вызывать этот метод </ i >∗/@ A n y Lo g i cI n t er n al Co d eg en A P Ip u b l i c double _ ep si l o n 1 _ D ef au l t V al u e_ x j al ( ) {f i n a l Explosion s e l f = t h i s ;return12513010;}p u b l i c void s e t _ e p s i l o n 1 ( double ep si l o n 1 ) {i f ( e p s i l o n 1 == t h i s .