基于J2EE的物流信息系統(tǒng)的設計與實現(xiàn)
介紹了J2EE 體系結(jié)構(gòu)、Mv c模式等相關概念和技術,并重點探討了
目 前比 較受歡迎的三種開源框架( s t r ut s框架、S Pr i n g框架和H i b e m a t e 框架)。
分析了他們的體系結(jié)構(gòu)、 特點和優(yōu)缺點。 根據(jù)J ZE E的分層結(jié)構(gòu),結(jié)合We b應用
的特點, 將三種框架進行組合設計, 即表現(xiàn)層用S t r ut s框架、 業(yè)務邏輯層用S P ri n g
框架、持久層用比b ema t e 框架,從而來構(gòu)建物流信息系統(tǒng)。這種整合框架使各
層相對獨立, 減少各層之間的禍合程度,同時加快了系統(tǒng)的開發(fā)過程,增強了系
統(tǒng)的可維護性和可擴展性,初步達到了分布式物流信息系統(tǒng)的設計目標。
經(jīng)過以上分析,結(jié)合物流系統(tǒng)的業(yè)務需求,進行了相關的實現(xiàn)。最后,系統(tǒng)
運用先進的A ja x技術來增強Ui層與服務器的異步通信能力, 使用戶體驗到動態(tài)
且響應靈 敏的桌 面級w e b應用程序。 通過江聯(lián)公司的試運行結(jié)果,系統(tǒng)達到了
渝瞇。 并 且 對 江 聯(lián) 公 司 提 出 了 基 于 R F I D 的 解 決 方 案 的 實 施 計 劃 。
% EM algorithm for k multidimensional Gaussian mixture estimation
%
% Inputs:
% X(n,d) - input data, n=number of observations, d=dimension of variable
% k - maximum number of Gaussian components allowed
% ltol - percentage of the log likelihood difference between 2 iterations ([] for none)
% maxiter - maximum number of iteration allowed ([] for none)
% pflag - 1 for plotting GM for 1D or 2D cases only, 0 otherwise ([] for none)
% Init - structure of initial W, M, V: Init.W, Init.M, Init.V ([] for none)
%
% Ouputs:
% W(1,k) - estimated weights of GM
% M(d,k) - estimated mean vectors of GM
% V(d,d,k) - estimated covariance matrices of GM
% L - log likelihood of estimates
%
壓縮目錄下的Test_USB_Test.exe是PC側(cè)的應用程序,dsp5509_10MHz_clk.out、dsp5509_12MHz_clk.out、和dsp5509_16MHz_clk.out是分別針對5509時鐘為10M、12M和16M的out文件。基于ccs2.2開發(fā)。
在ccs2.2中l(wèi)oad針對自己硬件平臺的.out文件,用USB線連接好5509與PC,運行.out,會提示檢測到USB設備,指定driver目錄下的驅(qū)動即可。
再運行Test_USB_Test.exe,其操作格式為Test_USB_Test.exe w 32 r 32
即從PC向dsp寫入32個字符,再讀取32個5509返回的字符,在dsp上將輸入的字符做了簡單的+1操作。
看n2實例 #Create a simulator object
set ns [new Simulator]
#Define different colors for data flows
#$ns color 1 Blue
#$ns color 2 Red
#Open the nam trace file
set nf [open out-1.nam w]
$ns namtrace-all $nf
set f0 [open out0.tr w]
set f1 [open out1.tr w]
#Define a finish procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exit 0
}
#Create four nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
#Create links between the nodes
$ns duplex-link $n0 $n2 1Mb 10ms