中国象棋网络对战平台系统

发布时间:2011-08-28 01:41:57   来源:文档文库   
字号:

2010年度本科生毕业论文(设计)

中国象棋网络对战平台系统

院: 电子信息工程学

业: 网络工程

级: 2007

学生姓名:

号:

导师及职称:

20106


随着信息技术的发展,人民生活水平的不断提高。联网游戏作为一种娱乐手段,正以其独特的魅力吸引着越来越多的玩家。为了满足广大象棋爱好者也可以享受到网络所带来的便利 ,本论文完成了基于JAVA开发的中国象棋网络对战平台的设计和实现, 它主要包含以下几大模块:网络通信模块,图像绘制模块和规则设置模块。网络通信模块使得玩家可以方便的迅速建立起网络连接,从而实现联机对弈和聊天功能;图像绘制模块实现棋盘更新以及棋子动态表示等功能;规则设置模块用于约束玩家的棋步。在本系统中规定了行棋规则,以及吃棋规则。此应用程序可以实现双人的网络对战,并能进行聊天,在象棋对战过程中,对获胜的一方及对方给与相应的信息提示 。相比传统的中国象棋对战平台,有功能更加齐全,操作更加简单,行棋更加人性化的优点。

关键词:JAVA 中国象棋 网络 对战平台

Abstract

With the development of information technology, peoples standard of living have improved constantly. On-line game as a means of entertainment has a unique charm to attract more and more players. To meet chess lovers ,In this paper, we have completed the design and realization of Chinese Chess network Battle platform based on Java. It contains the following major modules: the network communication module, image rendering module and the rules set up module. Network Communication Module allows gamers can quickly set up a convenient network connection in order to achieve an online game and chat function; image rendering module to update the board as well as functional pieces, such as the dynamic that; rules binding settings module for step-by-step player's game. In this system we provide line game rules, game rules. This application can be achieved in the network between two people, and can chat, in the process,On the winning side and the other to give the appropriate information tips.Compared with traditional Chinese Chess Battle platform, it has a more complete function , simpler operation, the more human chess advantages.

Keywords: JAVA; Chinese Chess; network; Battle platform.

第一章 绪论 4

1.1 背景 4

1.2 Java语言 4

1.2.1 Java的发展历史 4

1.2.2 Java的特点 5

1.3 Socket编程 6

1.3.1 关于TCP/IP协议 6

1.3.2 服务器和客户机 6

1.4 中国象棋介绍 7

第二章 系统的分析与设计 9

2.1. 网络对战平台系统的介绍 9

2.2系统构成 9

2.3相关技术 9

2.3.1 点对点通信 9

2.3.2数据库和数据结构的设计 10

2.2 服务器端与客户端的通信基本原理 11

3 系统模块的设计 13

3.1 客户端系统模块设计 13

3.1.1 棋盘设计 13

3.1.2 棋子设计 14

3.1.3 游戏房间、棋盘、棋子的关系 16

3.2 服务器端系统模块设计 17

第四章 系统界面设计与实现 19

4.1 客户端界面 19

4.2注册界面 21

4.3对战平台界面 23

4.4 游戏房间界面 25

1

参考文献 2

附录A 3

致谢 17

第一章 绪论

1.1 背景

从九十年代的MUD时代[1],到99年《网络创世纪》进入中国,再到2001年盛大《传奇》的奇迹成功,直到今天国内网络游戏市场的一片兴盛势头。网络游戏这个庞然大物已经在中国走过了好几个不同的阶段。随着网络游戏的影响不断增大,网络游戏具备了越来越多的社会意义。

随着游戏与 Java 技术平台的合作,越来越多的游戏编程爱好者把Java当作实现游戏程序的首选。现在,棋牌对弈类的游戏已经成为了众多人士闲暇之时用来消遣的竞技性游戏,它的娱乐性很强,而且还激发了头脑的思考,是游戏和智慧的结合体。本文基于java技术开发与设计的网络平台对战系统的中国象棋游戏软件。本人对中国象棋游戏特殊的行棋规则给予了细致的分析与理解,设计出了一种实时可行的方法,使每个棋子的行棋路线都严格遵循本身的行棋规则,使游戏的实战对弈得以实现。

1.2 Java语言

1.2.1 Java的发展历史

Java的发展历史,可以追朔到1990年。当时Sun Microsystem公司为了发展消费类电子产品进行了一个名为Green的项目计划。这个计划的负责任是James Gosling。起初他用具有面向对象特征的C++语言编写嵌入式软件,可以放在面包机或PDAPersonal Digital Assistant,个人数字主力)等小型电子消费这杯里,以使设备变得更为聪明,更具备人工只能。但后来发现C++并不适合这类任务;因为C++常会使系统失效。尤其在内存管理方面,c++采用直接地址访问方式。需要程序员记录并管理内存资源。这造成程序员编程的极大负担,并可能产生多个Bugs。面包机上的程序错误可能使面包机烧坏甚至爆炸。

为了解决此类问题,Gosling决定开发一种新的语言,并取名为Oak。它采用了大部分与C++类似的语法对可能具备危险性的功能加以改进,例如将内存管理改为由语言自己进行管理,以减少程序员的负担及可能发生的错误。Oak是一种可移置的语言,它是一种平台独立的语言,能够在各种芯片上执行,可以降低设备的研发成本。

1.2.2 Java的特点

Java是一种简单、安全、容易适用、面向对象、可移置、高性能、多线程的语言。

1. 简单性

Java语言简单高校,基本Java系统(编译器和解释器)所占空间不足250KB由于Java最初是为了对家用电器进行集成控制而设计的,因而具备简单命了的特征。

2. 面向对象

面向对象技术是现代工业的一次革新,提高了软件的模块化程度和重复适用率,缩短了软件开发时间,减低了卡发成本。在Java之前虽然已经有面向对象的程序设计语言问问世,但有些如c++并不是完全的面向对象,而是面向过程和面向对象的混合体。Java则是完全面向对象的程序设计语言。

3. 安全性

Java是可以用在网路及分布环境下的网路程序设计语言。在网路环境下,语言的安全性变得更为重要。Java提供了许多安全机制来保证其适用上的安全性。

4. 平台独立

平台独立指程序不受操作平台的限制,可以应用在各种平台上。Java源程序经过编译后生成字节码文件,而字节码与具体的计算机无关。只要计算机安装了能解释执行字节码的Java虚拟机JVM,就可以执行字节码文件,从而实现Java的平台独立性。

5. 多线程

Java具备内建的多线程功能,可以将一个程序的不同程序段设置为不同的线程,使各线程并发、独立执行,提高系统的运行效率。

6.网络功能

Java能从全球网络资源获取所需信息,如数据文件、影响文件、声音文件等,并对所得信息进行处理,所以说Java是一种网络语言。

7.执行效率

Java的字节码需要经过Java虚拟机JVM解释成机器码才能执行,所以速度上较慢。但是随着JVM技术的进步,使得其执行速度直逼CC++

1.3 Socket编程

1.3.1 关于TCP/IP协议

TCP协议是网络通信的基石,对此,Java专门提供了Socket的类库,在其中抽象出TCP协议通信的常用方法:

1)客户端,首先发送TCP请求的是客户端,客户端一般是服务(比如数据查询服务)的请求者。

2)服务器,在接收到客户端的请求后(确保同客户端的通信信道建立)服务器会向客户端提供服务。服务器一般是服务的执行者,会向客户端返回服务执行的结果。

为了实现客户端同服务器端的通信,客户端首先发送一个“SYN”数据包。如果服务器收到SYN标记,它将发回一个“SYN+ACK”数据包。接着,客户端为了表示收到了这个SYN+ACK信息,会向服务器发送一个最终确认信息(ACK包)。这种SYN,SYN+ACK,ACK的步骤被称为TCP连接建立时的“三次握手”,在这之后,连接就建立起来了,这个连接将一直保持活动状态,直到超时或者任何一方发出一个FIN(结束)信号。这种通信模式也叫客户端/服务器(C/S)模式。

1.3.2 服务器和客户机

网络最基本的目的就是让两台机器连接到一起,并相互交谈或者沟通。一旦两台机器都发现了对方,就可以展开一次令人愉快的双向对话。但它们怎样才能发现对方呢?这就像在游乐园里那样:一台机器不得不停留在一个地方,侦听其他机器说:嘿,你在哪里呢?
停留在一个地方的机器叫做服务器Server);到处找人的机器则叫做客户机Client)或者客户。它们之间的区别只有在客户机试图同服务器连接的时候才显得非常明显。一旦连通,就变成了一种双向通信,谁来扮演服务器或者客户机便显得不那么重要了。
所以服务器的主要任务是侦听建立连接的请求,这是由我们创建的特定服务器对象完成的。而客户机的任务是试着与一台服务器建立连接,这是由我们创建的特定客户机对象完成的。一旦连接建好,那么无论在服务器端还是客户机端,连接只是魔术般地变成了一个IO数据流对象。从这时开始,我们可以象读写一个普通的文件那样对待连接。所以一旦建好连接,我们只需使用自己熟悉的IO命令即可。这正是Java联网最方便的一个地方。

1.4 中国象棋介绍

中国象棋是我国国粹,历史悠久,普及流行。下棋双方根据对棋局形势的理解和对棋艺规律的掌握,调动车马,组织兵力,协调作战。在棋盘这块特定的战场上,进行着象征性的军事战斗。以下对游戏规则作简要说明。

(1) 棋子

象棋中棋子共三十二个,分为红黑两组,各十六个,由对弈双方各执一组,兵种是一样的,分为七种。

红方:帅、仕、相、车、马、炮、兵。

黑方:将、士、象、车、马、炮、卒。

其中帅与将、仕与士、相与象、兵与卒的作用完全相同,仅仅是为了区分红棋和黑棋。在本设计中为了简便,棋子只有将、士、象、车、马、炮、兵,区分仅仅为颜色不同。

(2) 棋盘

棋子活动的场所,叫做棋盘。在长方形的平面上,绘有九条平行竖线和十条平行的横线相交组成,共九十个交叉点,棋子就摆在这些交叉点上。中间第五、第六两横线之间未画竖线的空白地带,称为河界。整个棋盘就以河界分为相等的两部分,两方将、帅坐镇。画米字方格的地方,叫做九宫。

(3) 将或帅

移动范围:它只能在九宫内移动。

移动规则:它每一步只可以水平或垂直移动一点。

(4)

移动范围:它只能在九宫内移动。

移动规则:它每一步只可以沿对角线方向移动一点。

(5)

移动范围:河界的一侧。

移动规则:它每一步只可以沿对角线方向移动两点,另外,在移动的过程中不能够穿越障碍。

(6)

移动范围:任何位置。

移动规则:每一步只可以水平或垂直移动一点,再按对角线方面向左或者右移动。另移动的过程中不能够穿越障碍。

(7)

移动范围:任何位置。

移动规则:可以水平或垂直方向移动任意个无阻碍的点。

(8)

移动范围:任何位置。

移动规则:移动起来和车很相似,但它必须跳过一个棋子来吃掉对方的一个棋子。

(9)

移动范围:任何位置。

移动规则:每步只能向前移动一点。过河以后,它便增加了向左右移动的能力,兵不允许向后移动。

(10) 在走棋的时候,如果棋子能够走到的位置有对方的棋子存在,就可以把对方的棋子吃掉而占领该位置;

(11) 胜、负

帅(将)被对方吃掉。


第二章 系统的分析与设计

2.1. 网络对战平台系统的介绍

1)服务器可以同时服务10桌,每桌允许两个玩家通过对战平台对弈,并且可以有多个旁观者。

2玩家自由选择坐在哪一桌的哪一方。如果两个玩家坐在同一桌,双方应都能看到对方的状态。旁观者可随时进入游戏房间观看游戏进行情况。

3)进入游戏界面时有总时间显示显示对弈双方用户名及下棋步数双方以一定的时间交替走棋子,一方走棋子的时候另一方鼠标点击无效。任意选择棋子并方框闪烁提示,同时,对方也可看见提示。

4)游戏开始后玩家必须按照下一步提示信息放置棋子,且只能移动本方棋子。如果玩家单击对方棋子,则表示吃掉该棋子,游戏规则严格按照中国象棋走法规则。

5)如果一方的将或帅被吃,表明另一方获胜。

6在同一房间的用户可以聊天。

7游戏结束时提示

8游戏结束或强制退出后发消息给服务器

9旁观

2.2系统构成

中国象棋网上对弈系统是主要由:数据结构、图像绘制、规则设置、网络通信、棋子操作五部分构成。用户通过客户端登陆后即可进入对战平台。

2.3相关技术

2.3.1 点对点通信

OSI参考模型的应用层来看,可认为网络是由工作站和服务器组成的,但从传输层和网络层的角度看,工作站和服务器没有本质的区别,它们都是连接到网络上的一台机器,都可以用网络地址或名称来代替。它们之间的通信就是所谓的点对点通信,也叫对等通信。在局域网上,点点通信意味着两个工作站可以直接对话而不用经过文件服务器中转。

通信的基础是套接口(Socket),一个套接口是通讯的一端。socket通常也称作"套接字",用于描述IP地址和端口,是一个通信链的句柄。应用程序通常通过"套接字"向网络发出请求或者应答网络请求。

Socket实质上提供了进程通信的端点。进程通信之前,双方首先必须各自创建一个端点,否则是没有办法建立联系并相互通信的。正如打电话之前,双方必须各自拥有一台电话机一样。在网间网内部,每一个socket用一个半相关描述:(协议,本地地址,本地端口)。一个完整的socket有一个本地唯一的socket号,由系统分配。最重要的是,socket是面向客户/服务器模型而设计的,针对客户和服务器程序提供不同的socket 系统调用。客户随机申请一个socket (相当于一个想打电话的人可以在任何一台入网电话上拨号呼叫),系统为之分配一个socket号;服务器拥有全局公认的 socket ,任何客户都可以向它发出连接请求和信息请求(相当于一个被呼叫的电话拥有一个呼叫方知道的电话号码)socket利用客户/服务器模式巧妙地解决了进程之间建立通信连接的问题。

服务器socket 半相关为全局所公认非常重要。假如通信双方没有任何一方的socket固定,就好比打电话的双方彼此不知道对方的电话号码,要通话是不可能在这一端上你可以找到与其对应的一个名字。一个正在被使用的套接口都有它的类型和与其相关的进程。套接口存在于通讯域中。通讯域是为了处理一般的线程通过套接口通讯而引进的一种抽象概念。套接口通常和同一个域中的套接口交换数据(数据交换也可能穿越域的界限,但这时一定要执行某种解释程序)。Windows Sockets规范支持单一的通讯域,即Internet域。各种进程使用这个域互相之间用Internet协议族来进行通讯

2.3.2数据库和数据结构的设计

数据库有一个userinf表,含有userpassword 2个属性,user主键,分别用来存用户名和密码,如图:

2-2 数据库userinf

数据结构设计如下:

HashMapallsocket=new HashMap();用来绑定客户端的用户名和相对应的服务器端得套接字。HashMap finduser=new HashMap();绑定下棋的2个用户

List ready = new List();存已经准备的用户的准备信息

HashMap> spectator ;存旁观者与被旁观者

2.2 服务器端与客户端的通信基本原理

2-1 面向连接通信原理图

本设计采用流套接字(TCP/Socket)通信原理服务器运行服务程序时为它分配一个端口,客户端连接服务器的时候通过绑定客户端的用户名和相对应的服务器端的套接字进行连接。建立连接后在服务器端的套接字和客户端的套接字是绑定在一起的,这样,通过套接字客户端可以向服务器发送信息,服务器接受后也可以向客户端返回信息底层的套接字通信如上图2-1所示。

每当一个连接建立后,服务器就实例化一个线程并将套接字作为其构造函数的参数传入。多个连接建立后,图示如下:

2-2 多个客户端与服务器建立连接


3 系统模块的设计

3.1 客户端系统模块设计

在这里分析了棋盘设计,棋子设计以及游戏房间、棋盘、棋子的关系。

3.1.1 棋盘设计

在客户端,棋盘上的棋子都是一个个的对象,放在集合GraphicsList的对象graphics里,相当于客户端的棋盘。当初始化棋盘时,即在集合graphics中添加一个个棋子对象,并显示在棋盘图片对应的位置上。客户端的棋盘由一个用户控件构成,其背景图即为棋盘图片。因此该控件要响应MouseDownMouseMoveMouseUpPaint事件。

标记flag:表示鼠标第几次选中对象,其初始值为零。

lastPoint:表示鼠标上一次选中棋子时的点坐标。

lastObject:表示鼠标上一次选中的对象。

(1) MouseDown事件:

{

if(flag==0)

{

判断鼠标按下位置Point是否存在棋子对象w

若存在 {选中该对象;flag=1lastPoint=PointlastObject=w}

若不存在 {则返回;}

}

If(flag==1)

{

判断lastObject是否满足移动条件

若满足

{

判断鼠标按下位置Point是否存在棋子对象w

若存在

If(lastObject.ChessColor!=w.ChessColor)

{

删除w;把lastObject移动到该点;Flag=0;返回;

}

else{Flag=0;返回;}

若不存在

{直接把lastObject移动到该点;flag=0;返回;}

}

若不满足

{flag=0;返回;}

}

}

(2) MouseMove事件:当鼠标移动到棋子上方时显示为手型图标,表示可以移动该棋子。其他位置鼠标形状为默认状态。

(3) Paint事件:绘制graphics里的棋子对象。依次画出各个棋子对象在棋盘上的位置,然后刷新。

(4) SetChess(int i ,int j,int ChessColor,int ChessID)函数:把ID号等于ChessID的棋子放置在坐标ij所在的位置上。

(5) DeleteChess(int chessID)函数:删除ID号为chessID的棋子。

(6) AddNewObject()函数:添加新的棋子对象。

(7) SelectObject(int chessID)函数:选中指定ID的棋子,显现其句柄。

(8) ResetGrid():初始化棋盘。添加所有棋子对象,并放置在适当位置。

3.1.2 棋子设计

象棋的棋子有七种:将、士、象、车、马、炮、兵。他们之间有一些共同的属性和方法,同时也有自己的特点。因此在设计棋子时,首先写了一个基类,把他们共同的属性和方法放在里面,然后不同的棋子继承这个基类,并拥有自己的属性和方法。设计的类图如下图3-1所示:

3-1 棋子类图

棋子的核心函数功能:

(1) IsMove(int dX,int dY,ChessBord pallete)函数:用于判断棋子是否移动,其返回值为布尔型,其中三个参数的含义分别为:dX表示移动的X坐标步长,dY表示移动的Y坐标步长,pallete表示棋盘控件对象。

(2) Move(int dXint dY)函数:把棋子在X坐标上移动dX距离,在Y坐标上移动dY距离。

(3) SetChessPosition(int iint j)函数:把当前棋子左上角的位置设置为i j 坐标所对应棋盘上的位置。

3.1.3 游戏房间、棋盘、棋子的关系

一个游戏房间对应一个棋盘,在棋盘上可以添加棋子、删除棋子、移动棋子,这些棋子放在一个集合中,该集合可以想像成盛放棋子的容器。他们之间的关系如下图3-2所示。

3-2 客户端各个类的关系图

核心函数功能介绍:

(1) SetEnterUserTips(string uerTypeString, string names, string roomOnLineNames)函数:设置用户进入房间看到的信息。userTypeString表示用户类型(0黑方,1红方,2旁观),names表示昵称(格式:黑方名/红方名/旁观者),roomOnLineNames已经进入房间的用户昵称。

(2) SetExiteUserTips(string userTypeString, string names)函数:设置用户退出房间后显示的信息,自己退出不需要调用此方法。userTypeString表示用户类型(0黑方,1红方,2旁观),names表示昵称(格式:黑方名/红方名/旁观者)。

3.2 服务器端系统模块设计

在系统总体分析和设计中,我们已经讨论了服务器端应包含的所有类,现对这些类进行详细的说明。它们之间的关系如下图3-3所示。

3-3 服务器端类图

服务器端的棋盘Grid是一个二维数组,其中每一个元素都是一个结构类型,含有两个int型的变量ChessColorChessIDChessColor的值有-101分别表示无棋子、黑色棋子、红色棋子。ChessID的值为032其中:

0:无棋子 1:黑车一 2:黑马一 3:黑象一 4:黑士一

5:黑将 6:黑士二 7:黑象二 8:黑马二 9:黑车二

10:黑炮一 11:黑炮二 12:黑兵一 13:黑兵二 14:黑兵三

15:黑兵四 16:黑兵五 17:红兵一 18:红兵二 19:红兵三

20:红兵四 21:红兵五 22:红炮一 23:红炮二 24:红车一

25:红马一 26:红象一 27:红士一 28:红将 29:红士二

30:红象二 31:红马二 32:红车二

在服务器端,令Grid[ i , j ].ChessColor=-1Grid[ i , j ].ChessID=0表示该点无棋子。若删除一个棋子,即令该位置的颜色为-1ID0;而在客户端删除一个棋子,则是删除棋子集合中ChessID=ID的棋子对象。

界面设计中包括:客户端界面设计;房间设计;棋盘设计;


第四章 系统界面设计与实现

4.1 客户端界面

用户运行客户端程序,首先进入登录界面,如图3-4所示。

3-4 登录界面

客户填入正确的账号和密码后点击【登录】按钮与服务器建立链接。若服务器没有开始监听,此时提示连接失败信息。否则连接成功,客户端发送给服务器Login命令。服务器接收到该信息后判断游戏室内是否已经有人正在使用这个账号如果没有,则将该用户添加到用户列表中

主要实现代码:

socket = new Socket("localhost",8080);//客户端与服务器连接

System.out.println("连接服务器成功");

pw = new PrintWriter(socket.getOutputStream(), true);

t=new Thread(this);

t.start();

}

public void run() {

BufferedReader br = null;

try {

br = new BufferedReader(new InputStreamReader(socket.getInputStream()));

String msg = null;

while (true) {

if(exit)

break;

msg = br.readLine();

StringTokenizer st=new StringTokenizer(msg,"@",false);

String flag=st.nextToken();

if(flag.equals("check"))

{

StringTokenizer str=new StringTokenizer(st.nextToken()," ",false);

String tag=str.nextToken();

if(str.hasMoreTokens())

{

String string=str.nextToken();

if(string.equals("1"))

{

if(tag.equals("0"))

{

Register.register.jLabel2.setText("该用户名可用!");

Register.register.legal=true;

}

else

Register.register.jLabel2.setText("该用户名已存在,请重试!");

}

else

JOptionPane.showMessageDialog(this,"该用户已在线!");

}

else if(tag.equals("0"))

JOptionPane.showMessageDialog(this,"该用户名不存在!");

else if(tag.equals("1"))

JOptionPane.showMessageDialog(this,"密码错误!");

else

{

Room.room = new Room(user, socket);

this.setVisible(false);

break;

}

4.2注册界面

先填入用户名,然后点击 “开始”检测是否有其他用户使用这个用户名。然后再输入密码,两次密码必须一致才能注册成功!

3-5 游戏室界面

主要实现代码:

if(!legal)

{

JOptionPane.showMessageDialog(this,"请先确认用户名是否存在!");

return;

}

password1=new String(jPasswordField1.getPassword());

password2=new String(jPasswordField2.getPassword());

if(!password1.equals(password2))

{

JOptionPane.showMessageDialog(this,"密码确认错误!");

return ;

}

if(checkInf(password1,2))

return ;

Login.pw.println("register@"+user+" "+password1);

}

public boolean checkInf(String string,int state)

{

boolean mark=false;

if(string.length()==0)

{

if(state==1)

JOptionPane.showMessageDialog(this,"用户名不能为空!");

else

JOptionPane.showMessageDialog(this,"密码不能为空!");

return true;

}

for(int i=0;i

{

if(string.charAt(i)==' '||string.charAt(i)=='@')

{

mark=true;

if(state==1)//用户名

JOptionPane.showMessageDialog(this,"用户名不能含有空格或@号!");

else

JOptionPane.showMessageDialog(this,"密码不能含有空格或@号!");

break;

} }

return mark;

4.3对战平台界面

从客户端登录成功后,就可以进入“象棋对战平台界面”,然后可以选择其中一个房间点击“准备”就可以与其他玩家对战象棋游戏。

3-6 对战平台界面

主要的实现代码:

jScrollPane1.setAutoscrolls(true);

jLabel4.setFont(new java.awt.Font("宋体", 2, 18));

jLabel4.setText("VS");

jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

jLabel5.setText("空缺中");

jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {

public void mouseClicked(java.awt.event.MouseEvent evt) {

jLabel5MouseClicked(evt);

}

});

jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

jLabel6.setText("空缺中");

jToggleButton2.setText("准备");

jToggleButton2.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jToggleButton2ActionPerformed(evt);

}

});

jLabel8.setText("房间1");

jToggleButton1.setText("准备");

jToggleButton1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jToggleButton1ActionPerformed(evt);

}

});

4.4 游戏房间界面

一旦一个桌上的2个用户都准备了,游戏开始。在同一个房间的两个用户可以相互聊天,房间里有时间闹钟记录用户下棋的时间。房间还可以记录用户下棋的步数。一旦用户点击棋子的时候,棋子就会显示出闪烁状态。初始界面如下:

红方:

主要实现代码:

public void run() {

try {

br = getReader(socket);

String msg = null;

while (!Thread.currentThread().isInterrupted()) {

msg = br.readLine();

if (exit) {

new Thread(Room.room.new MyRunnable()).start();

Room.room.select = 0;

pw.println("list@1");

break;

}

StringTokenizer str = new StringTokenizer(msg, "@", false);

String flag = str.nextToken();

if (flag.equals("%"))//显示上桌的用户

{

StringTokenizer st = new StringTokenizer(str.nextToken(), " ", false);

String use = st.nextToken();

int label = new Integer(st.nextToken()).intValue();

Room.room.setButton(label, use, true);

} else if (flag.equals("%%"))//离桌

{

StringTokenizer st = new StringTokenizer(str.nextToken(), " ", false);

int label = new Integer(st.nextToken()).intValue();

Room.room.setButton(label, "空缺中", false);

} else if (flag.equals("list"))//更新用户列表

{

String use = str.nextToken();

StringTokenizer st = new StringTokenizer(use, "*", false);

Room.room.alluser = new String[st.countTokens()];

int count = 0;

while (st.hasMoreTokens()) {

Room.room.alluser[count] = st.nextToken();

count++;

}

Room.room.listUser();

} else if (flag.equals("time")) {

String string = str.nextToken();

countSeconds = 40;

StringTokenizer st = new StringTokenizer(string, " ", false);

String string1 = st.nextToken();

String string2 = "";

if (st.hasMoreTokens()) {

string2 = st.nextToken();

}

if (shanshuo == 1) {

time.stop();

glitter = 0;

jPanel1.repaint();

shanshuo = 0;

}

if (string1.equals("red"))//红方开始计时,表示上次是黑方走步

{

drawclock = 1;

if (!string2.equals("")) {

if (state == 1) {

jLabel6.setText(string2);

} else {

jLabel10.setText(string2);

}

}

if (state == 1 && (!Room.judgespectator)) {

move = true;

}

} else {

drawclock = 2;//黑方开始计时

if (!string2.equals("")) {

if (state == 2) {

jLabel6.setText(string2);

} else {

jLabel10.setText(string2);

}

}

if (state == 2 && (!Room.judgespectator)){

move = true;

} }

通过本次课程设计,我学习了运用软件工程方法指导项目开发的基本思想,并提高了自身的软件设计能力。中国象棋在棋牌类游戏中非常经典,它对于如何走棋的判断、对蹩脚马和塞眼象的判断,这些算法的设计比较复杂。网络通信方面的数据传输和识别,视图的更新和重绘都是本系统设计的重点。

由于初次运用软件工程思想,在各方面难免有不足之处。譬如在需求设计时,没有进行风险分析,没有考虑时间和技术因素,将需求定义的过于庞大,致使游戏大厅,用户注册模块最终无法完成。在人员协调方面,团队积极性不高,团队间的交流不够,导致开发效率低下,项目进度一度滞后。由于对j2me技术不够熟练,软件界面显得比较粗糙,操作显得很繁琐,代码组织也显得散乱。还有一个问题是,项目打包遇到了问题,需在开发环境中才能运行。这些问题和缺陷,我会在将来的项目开发中改进。

参考文献

[1] 万波等译.Java语言程序设计 进阶篇(原书第六版)[M].北京:机械工业出版社,2008

[2] 韩力凡,吴清萍.中文Access数据库应用教程[m]. 北京:机械工业出版社,2005

[3]()Weiss,冯舜玺译.数据结构与算法分析:Java语言描述[M].北京:机械工业出版社,2004

[4] 殷兆麟,张永平,姜淑娟著.Java网络高级编程[M].北京:北京交通大学出版社,2005

[6] 张广彬,孟红蕊,张永宝.JAVA课程设计案例精编[M].北京:清华大学出版社,2007

[7]朱福喜,黄昊.Java项目开发与毕业设计指导[M].北京:清华大学出版社,2008

[8] 冯博,应群.面向对象的JAVA网络编程[M].北京:清华大学出版社, 20036

[9] Bruce Eckel[].Java编程思想[M].陈昊鹏译.北京:机械工业出版社,20039

[10] 结城浩[].Java多线程设计模式[M].博硕文化译北京:中国铁道出版社,200412

[11]()Norton,潘晓雷等译.JAVA2入门经典:JDK5[M].北京:机械工业出版社,2006

附录A

Electronic customer relations management (e-CRM)

1 introduction

Today the on-line enterprise and electronic commerce world oneself very difficultly if the competitor differentiated frequently after competition intense. us some on-line enterprise provides the convenience, personalization perfect service. this for the user and splits up to many on-line enterprises' successes to the key function. Through effectively the communication and the transmission product, the service, the information as well as the customer question, request Solution which and needs, CRM to concentrate in for the customer provides with the maintenance high-quality service. CRM may include the call processing (hits from overseas customer and service representative with hits preserves toward overseas telephone), the sales track [ all sales track and the recording) and the transaction support (use in processing commercial transaction technology and personnel) and other functions. ECRM is CRM in the electronic commerce strategy application, including to the customer experience and its the personalization and the user which with the website, the call center or any other customer relation electronic commerce ways affects mutually. ICRM this terminology may use in turn with eCRM the electronic commerce customer relations management. In order to provide high grade CRM, the company must formulate has is clear about the goal the plan, and carries out this plan with the market and the information technology department cooperation. The enterprise analysts should examine the plan all details and the data, like the expense drops or the customer complains increases, by defines the CRM system.

ECRM is essential to the on-line enterprise's success, because relations between the merchant and the customer of are become estranged, you possibly never saw to perhaps has spoken with opposite party. Therefore. Constructs the vertical shaft to maintain this kind of relations, more understood opposite party is extremely important. This kind of relations can cause the customer to turn head the repetition purchase. Detains the existing customer to develop the new customer to have to be much cheaper than.

2.Track and analysis data

The on-line advertising agent, the on-line association and the on-line enterprise use in tracking the visit customer behavior an essential method is rents tracks the equipment. Data which through the recording document analysis, the data mining, the customer registration, homepage Cookie and other equipment collect, along with time passing, can use in visiting the customer experience personalization, discovers the customer use tendency. to examine the website the potency. This this track equipment in under sectionalization specify. The correct data analysis and the response measure realization, can use in increasing the market competitive power, brings a customer greater degree satisfaction.

The advertisement customer and website owner may use the ID card, the marking advertisement clicks with Web bug (network interception procedure) tracks the visitor. The ID card can cause the information to transmit from the website to yours computer. Not including yours name and email address address. Speaking of your computer search information, only then on your net the personal computing digital address in the network the browser and the operating system is essential.

The advertisement clicks can cause the visit customer through to click on the advertisement to see to the product or the service. This also is called the track equipment use, because the advertisement customer can understand to, any stand created in a big way has clicked on the sale, which advertisements were most effective.

Web bug or the clear GIF form image document sets inlays on the screen in some image, website owner permits the company, specially advertisement company, this this collection of information procedure Tibet in their stand different part. Whenever the user requests to bring Web bug the homepage, Web bug on to make web bug the company server to send out the request, like this can track the user on-line whereabouts. This kind of track law allows the member to collect the user information, for example, may conceive the permission advertisement company to lay aside Web bug in its customer website. If you visit to have Web bug the stand, visits the information about you to be able to record to on the advertisement company's server. Then, if have advertisement company Web bug you to another the stand, your visit also can by the record. This permission advertisement company continues to establish the customer disposition document. Under several narrated the track and the analysis, including recording document analysis, data mining, customer registration and homepage Cookie.

2.1 recording documents analysis

When you visit some stand, you on submit the information from the stand server to request that, this request is recorded the recording document. The recording document is composed by the stand visit production data, including each visitor's position, IP address, visit time, Rate of people logging in and other information. The recording document analysis organizes and summarizes contains in the recording document the information.

The recording document analysis can visit the customer specially in the determination the quantity,This kind of information may use in the advertisement goal. The recording document analysis can to you demonstrate the stand change or carries on the ad campaign the website communication load effect. Understood your source of tourists is helpful to sets a target well the market. For example, if notes to has very many international visitors, but your market in the locality, possibly needs to consider the determination including these visitors' goal markets, and therefore revises the website.

2.2 data minings

Although the recording document analysis is determines the network communication load statistics the good method, but finally you must know about yours customer more situations. The data mining use algorithm and the statistical tool seek the source in the customer visit data model. Although the enterprise "the data is rich", but very little fully uses these data. The manual inspection massive data cost a great deal of money extremely time-consuming. The enterprise may in the service data excavation analysis company interior or the market tendency, this kind of information transfers but helps their effectively marketing product, the management enterprise. The public model can through the help enterprise understand well its customer, enhances CRM and the marketing competition. The enterprise also can discover the new demand either the improvement product or the service through the research customer purchase model.

The HNC software company provides DataBase Mining-Marksman (www.Hncmarksman.Com) the product. can excavate the data, and provides the statistical model, the customer analysis and the marketing competition to market all quarters. For example, it can help you to determine the correct marketing competition goal community. The HNC software company fills out a form and the qualified person to these provides 30 day-long free tests. Data Distilleries (www.Datadistilleries.Com) also provides the customer relations management product and the service, including is called as DD/Marketer data mining software. Visits www.Angoss.Com/Ksprod/Kspage.Htm may download the free KnowledgeSEEKER education version, this is the data mining product which provides by the ANGOSS software company. Other provide the data mining service the website also to have www.Appliedmetrix.Com, Www.Datainstints.Com and www.Smartdrill.Com.

2.3 customers registrations

When provides the actual benefit to the customer, suggested carries on the customer registration, the request customer fills in individual information in the table with by to produce the disposition document. When each time the customer use user name and the password register the website, their behavior can receive tracks and Store in the company the database. This information is helpful in the company designs the stand, the customer service and the marketing strategy in view of the customer demand.

Wants the customer registration to be very difficult. The people do not would rather frequently fill in request individual information the form. The establishment customer document best method requests the least information, like user, password and electronic mail address. If the website provides the on-line service, provides the free test or the free example lets the customer realize this service, you should encourage the latent customer registration registration, for the induction user registration, the vending company may provide some pledges, like on the free present card, the free calling card or the net the shopping discount, the registration process should be quickly easy, otherwise the user possibly walks.

After the potential user registration, you should send the email to them, and welcome them including theirs user to visit the website. Some websites ask each user to propose only then the user to know the answer the specific question - if the user has forgotten the password, can ask their this question. After receives the correct answer, the website postal gives the password the user.

3.Personalization

The personalization use comes from the track, the excavation and the data analysis information, has custom-made it for the customer with between company's mutual function product, the service, the website and employee's, the user and the company all can profit from the source in the personalization special treatment, provides the special benefit to yours customer the content, is helpful in establishes one kind of relations, you can returns to the website when each time the customer rely on this kind of relations, through provides, the advertisement, the promotion and the service lock onto target user personally, the user may enjoy the personalization attention and be possibly more loyal. At first, feels frequently with the actual store to individual service compares, the Internet lacks the personalization help. Complex technical help very many websites provide with the customer individual relation, for example, Amazon.Com provides the customer registration, the recommendation product and the personalization reception customer. The personalization is very important to the network marketing, specially to manages the customer relations by to enhance the customer loyalty.

Collaborative filtering compared the current user's interest and the policy-making rank and the past user, by provides with the present user interest correlation content. Music and the books website makes the recommendation after commonly used collaborative filtering to the user. Visits www.Shadow.Ieor.Berkeley.Edu/Humor/Info.Html experiences the source from the collaborative filtering personalization. The appraisal lists joke. then registration free gain use collaborative filtering recommendation joke. This website also provides with other includes the collaborative filtering information the website link. Based on rule personalization expression personalization content, these contents based on formulation rules and regulations or supposition user disposition document.

3.1 personalizations and right of privacy

Some people felt that, the personalization is representing to their right of privacy infrigement. However, moreover some people simply have not perhaps realized the data in to collect, and already in website personalization. This argument focal point is permits the personalization the technology. For example, the homepage Cookie permission electronic commerce website records visitor's behavior, a recognition more valuable user. Many users have not realized, when they glance over the special website, homepage Cookie stores to on theirs computer. The market merchant uses for them from the data research obtains individual information the method to have to be prudent. The personalization association, forms newly the main website association, attempts individual which holds these to like splicing their network experience. In June, 2000, this association announced a research, pointed out the majority user all likes in fact theirs information and the behavior storage records, this findings may pass www.Personalization.Org sees to. When some users possibly must splice individually theirs network experience, another some people thought actually records their behavior is to their privacy infrigement. If suitably uses and keeps firmly in mind the user the right of privacy, the personalization technology through meets the user need, can and the user establishment stable relations.

4.Relation center

The user also ought to be able through the call center development transaction, to discover the question the answer, customer service representative (CSR) in the traditional call center,Can find them through 800 numbers. Has the multimedia relation center the company, allows the belt Internet connection the user through the email, the on-line text to chat or the real-time pronunciation correspondence relates CSR. Is called the call center, the electronic relation center, calls the multimedia relation center, the goal all is same. namely provides the service experience for individual customer, this need performs to each customer request and the question individually to consider.

For provides the customer comprehensive opinion. company to CRS to integrate all customers service function diligently. In the past CSR always considered the expense, will converse on the telephone the timing control to receive the encouragement in the shortest procedure. Now the Internet can serve as other customer relation choice, the creation opportunity to customer experience personalization processing, this increased the customer loyalty and the sales volume.

The multimedia relation center will change CSR the culture, CSR must be profounder in the technology, will process all forms the customer relation. The question no longer is answers the question in the shortest time. CSR must provide the extreme personalization, lets customer satisfaction the experience. The quantity which the new form customer relation can through the reduced telephone bill, which increase service representative be able to process the customer inquired to reduce the expense.

3Com (www.3com.Com) has provided Contact the Advantage this kind of relation center solution. This plan has provided IP Contact (the IP relation, sound. telephone and facsimile service), Web Contact (network relation, network chatted, clicks on conversation and returned telegram) and Ultimate Contact (integrated all customers relation channel, provided comprehensive customer opinion). This plan take slightly to the medium enterprise as a goal.

Some companies possibly choose buy from outside the relation center equipment. If as a result of the equipment expense, the work space, service representative and the technical support reason, the company incapably completes the relation center, this is possibly right. Stream International,Inc.(www.Stream.Com/Stream.Nsf) has provided exterior purchase technical support to the company. Other provide exterior purchase relation center equipment the company also to include Sitel Corportion (www.Sitel.Com) andTeleTech (www.Teletech.Com). Sitel Corporation has more than 70 customers administrative center,Processing comes from the world each place customer. TeleTech in its customer correlation center, uses its multi- channels customer correlation platform CyberCare. This gave the customer to represent an independent customer angle of view, but no matter represented the relation use the method.

4.1 common questions and answers

In the website common question and answer (FAQ) the item will help the customer to find their certain questions the answer, omitted customer service representative to deal with the issue the time. These questions if nobody correlation is impossible to reply. The self-service serves the FAQ software and the network FAQ software help company provides the useful answer to the general customer question, the track user uses these equipment. Except provides the FAQ item, must provide the telephone number and the suitable electronic mail address. Like has the necessity. After allows the people to glance over the FAQ item. to relate for other information with you. because FAQ is impossible to answer each customer the question. Another supplemented a FAQ choice including the website in search engine, the permission user strikes a character or the phrase. found in the website and the special question correlation information.

4.2 on-line texts chat

The on-line text chatted has provided the real-time form which the customer and between customer representative corresponded. If the company provided the text to chat, because has not obtained the answer but to be possible to decide left the website the customer, could choose and the customer represents relates immediately. Some customers represent time possibly continue process a text to chat. But traditional service representative usual only can process a customer. Through clicks on the button, assigns out the small window which a text chats, the customer when chats with service representative also can continue to glance over the website. This lets customer representative observes to the customer inquiry when the thing which looked. The text "chats" is immediate. However, if representative is busy with very chats the item, the customer will feel the reply delay. The text chats also possibly loses vivid which the humanity exchanges, because does not have the sound intonation and the expression. when writes with the text and is read by customer service representative, the information meaning possibly is misinterpreted.

Chats along with the text with the mobile media changes popularly, the customer service chats possibly includes the live TV conference, lets customer service representative and the customer looks mutually the text chats or the use pronunciation exchanges. This is helpful in establishing a special personalization standard.

5B2B electron customer relations management

The B2B electronic commerce key displays is the effective customer relations management (CRM). In the B2B commerce, B2B CRM is different with B2CCRM.When you sell the product to another enterprise, you sold for some are not possibly the product direct user's person. Because the product user's opinion or the appraisal is possible with you the difference which hears from company contact person there. Invites you the contact person and the terminal user chats, can discover the terminal user constructs the parliament to promote the product or the service enhancement. Through listens to the suggestion, the maintenance and the existing customer relations, continues to improve the service, this can establish the customer the loyalty.

Carries out the good partnership management (PRM), including enhancement in between company and its partner operation and function efficiency. The partner may include transfers the seller, the publisher, through provides the increment service either the product spare part for you but improves the product or the service enterprise. Manages these relations including the integrative system in order to unifies with partner business and the marketing operation. The company and its the partner system integration meets the running water processing, provides the technology to be coordinated. by enhances the efficiency, reduces total time which orders and fulfills.

6.Completes the e-CRM solution

The use sum aggregate becomes completely the CRM tool solution, the software or the service, has provided the sole customer viewpoint, but does this very is possibly expensive. The expense or serves itself price including the software, the present system integration, the system maintenance and employment service representative. These solutions will continue effectively.

E.Piphany (www.Epiphany.Com) is a customer relations management solution supplier. E.Piphany E.5 is a set based on the network CRM solution, this plan permits you from the present software system and the third party collection data. Data including customer, website visit customer, partner, member and product tax revenue. E.Piphany E.5 analyzes these data, decision special commercial activity returns ratio, investment repayment, customer purchase pattern and so on. The data analysis can use in the customer visit special-purpose. E.Piphany E.5 also can affects mutually when the employee and the customer the course of action provide the real-time suggestion for customer service representative.

中文翻译

电子客户关系管理(e-CRM

1介绍

今天在线企业和电子商务世界己经竞争激烈.我们常常很难将某个在线企业与其竞争对手区分开来为用户提供方便的、个性化的完美服务.这对许多在线企业的成功与分化起到了关键作用。通过有效地沟通和传送产品、服务、信息以及客户问题、要求和需要的解决之道,CRM专注于为客户提供和保持优质服务。CRM可以包括呼叫处理(从国外客户和服务代表打来的与打往国外的电话留存),销售跟踪〔所有销售的跟踪与记录)和交易支持(用于处理商务交易的技术和人员)及其他功能。eCRMCRM在电子商务战略中的应用,包括对客户经验及其与网站、呼叫中心或任何其他客户联系电子商务方式相互作用的个性化和用户化。iCRM这个术语可与eCRM交替用于电子商务客户关系管理。为了提供高质量的CRM,公司必须制定具有明确目标的计划,并与市场和信息技术部门合作执行该计划。企业分析师应该审查计划的所有细节和数据,如费用下降或客户抱怨增加,以定义CRM系统。

eCRM对在线企业的成功必不可少,因为商家与客户间的关系是疏远的,你可能从未看到过或是与对方讲过话。因此。建立井保持这种关系,更多地了解对方非常重要。这种关系能使客户回头重复购买。留住现有客户比开发新客户要便宜得多。

2.跟踪与分析数据

在线广告商、在线团体及在线企业用于跟踪访问客户行为的一个基本方法是租赁跟踪设备。通过记录文件分析、数据挖掘、客户注册、网页Cookie和其他设备收集的数据,随着时间的推移,能用于访问客户经验个性化,找出客户使用趋势.检验网站的效力。这此跟踪设备将在下面的分节里详细说明。正确的数据分析和响应措施的落实,能用于增加市场竞争力,带来顾客更大程度的满意。

广告客户与网站拥有者可使用ID卡、标识广告点击和Web bug(网络窃听程序)跟踪访客。ID卡能使信息从网站传送到你的电脑。不包括你的姓名与电子邮箱地址。对你的计算机检索信息而言,只有你网上个人电脑的数字地址在网络上浏览器和操作系统是必不可少的。

广告点击能使访问客户通过点击广告看到产品或服务。这也叫做跟踪设备使用,因为广告客户能够了解到,什么站点创造了最大的点击销售,哪些广告是最有效的。

Web bug或清楚的GIF格式图像文件置嵌于屏幕上的某个图像之中,网站拥有者允许公司,特别是广告公司,将这此信息收集程序藏于他们站点的不同部分。每当用户要求带Web bug的网页,Web bug就向制造web bug的公司服务器发出请求,这样就能跟踪用户在网上的行踪。这种跟踪法允许会员收集用户信息,例如,可以设想允许广告公司在其客户网站放置Web bug。如果你访问其中一个带有Web bug的站点,关于你访问的信息就会记录到广告公司的服务器上。接着,如果你到另一个带有广告公司Web bug的站点,你的访问也会被记录。这允许广告公司持续建立客户配置文件。下面的几节讲述了跟踪与分析,包括记录文件分析、数据挖掘、客户注册与网页Cookie.

2.1记录文件分析

当你访问某个站点时,你就从站点服务器提交信息请求,该请求被记进记录文件。记录文件由站点访问生成的数据组成,包括每位访客的位置、IP地址、访问时间、访问率及其他信息。记录文件分析组织并总结包含在记录文件里的信息。

记录文件分析能于确定特别访问客户的数量,这种信息可用于广告目的。记录文件分析能向你展示站点改变或进行广告活动的网站通信量效果。了解你的客源有助于更好地确定目标市场。例如,如果注意到有很多国际访客,而你的市场在当地,可能需要考虑确定包括这些访客的目标市场,并因此修改网站。

2.2数据挖掘

虽然记录文件分析是确定网络通信量统计的好方法,但最终你还是要知道关于你的客户的更多情况。数据挖掘使用算法和统计工具寻找源于客户访问的数据模型。虽然企业“数据丰富”,但很少充分利用这些数据。手工检查大量的数据极其费钱费时。企业可以使用数据挖掘分析公司内部或市场中的趋势,这种信息转而帮助它们更有效地营销产品、经营企业。公开模型能通过帮助企业更好地懂得其客户,提高CRM和营销竞争。企业也能通过研究客户购买模型发现新的需求或改进产品或服务。

HNC软件公司提供DataBase Mining-Marksman (www.hncmarksman.com)产品.能挖掘数据,并向市场各方提供统计模型、客户分析和营销竞争。例如,它能帮助你确定正确的营销竞争目标群体。HNC软件公司向那些填表并合格的人提供30天的免费试用。Data Distilleries (www.datadistilleries.com)也提供客户关系管理产品和服务,包括称作DD/Marketer的数据挖掘软件。访问www.angoss.com/ksprod/kspage.htm可下载免费的KnowledgeSEEKER教育版,这是由ANGOSS软件公司提供的数据挖掘产品。其他提供数据挖掘服务的网站还有www.appliedmetrix.com, www.datainstints.comwww.Smartdrill.com.

2.3客户注册

当向客户提供实惠时,建议进行客户注册,要求客户在表中填写个人信息用以产生配置文件。每次客户使用用户名和密码登录网站时,他们的行为就会受到跟踪并存进公司的数据库。该信息有助于公司针对客户需求设计站点、客户服务和营销战略。

要客户注册很难。人们常常不情愿填写要求个人信息的表格。建立客户文件最好的方法是要求最少的信息,如用户名,密码和电子邮件地址。如果网站提供在线服务,提供免费试用或免费实例让顾客体会该项服务,你就应该鼓励潜在客户登记注册,为诱导用户注册,售货公司可提供一些承诺,如免费礼品证、免费电话卡或网上购物折扣,注册过程应快捷容易,否则用户就可能走掉。

潜在用户注册后,你应该给他们发电子邮件,其中包括他们的用户名和欢迎他们访问网站。有些网站请每个用户提出只有用户知道答案的特定问题如果用户忘了密码,就会问他们该问题。收到正确的答案后,网站将密码邮给用户。

3.个性化

个性化使用来自跟踪,挖掘和数据分析的信息,为顾客定制其与公司的产品、服务、网站及雇员间的相互作用,用户与公司都能从源于个性化的特殊对待中受益,向你的客户提供特殊利益的内容,有助于建立一种关系,你能在每次客户返回网站时依赖这种关系,通过个人提供、广告、促销和服务锁定目标用户,用户可以享受个性化关注并可能更为忠诚。起初,与实际商店经常感受到的个人服务相比,因特网缺少个性化帮助。复杂的技术帮助很多网站提供与客户的个人联系,例如,Amazon.com提供客户注册,推荐产品和个性化地接待客户。个性化对网络营销很重要,特别是对管理客户关系以提高客户忠诚度。

合作过滤将当前用户的兴趣与决策等级与过去用户相比较,以提供与现在用户兴趣相关的内容。音乐和书籍网站经常用合作过滤向用户作推荐。访问www.shadow.ieor.berkeley.edu/humor/info.html去体验源自合作过滤的个性化。评估列出的笑话.然后登记免费获取使用合作过滤推荐的笑话。该网站也提供与其他含有合作过滤信息的网站链接。基于规则的个性化表达个性化内容,这些内容基于制定规章或假设的用户配置文件。

3.1个性化与隐私权

一些人感到,个性化代表着对他们隐私权的侵犯。然而,另外一些人也许根本没有意识到数据在被收集,并已在网站上个性化。这场争论的焦点是允许个性化的技术。例如,网页Cookie允许电子商务网站记录访客的行为,识别更有价值的用户。许多用户没有意识到,当他们浏览特别网站时,网页Cookie就存贮到他们的电脑上。市场商人对他们使用从数据研究得到个人信息的方法必须慎重。个性化协会,一个新形成的主要网站协会,试图容纳那些喜欢拼接他们网络经验的个人。20006月,该协会公布了一个研究,指出大多数用户实际上都喜欢将他们的信息和行为存贮记录起来,该研究结果可以通过www.personalization.org看到。当一些用户可能要将他们的网络经验单个拼接起来时,另一些人却认为记录他们的行为是对他们隐私的侵犯。如果适当地使用并牢记用户的隐私权,个性化技术通过满足用户需求,就能与用户建立稳固的关系。

4.联系中心

用户也应能通过呼叫中心开展交易,找出问题的答案、客户服务代表(CSR)在传统的呼叫中心里,通过一个800号码就能找到他们。拥有多媒体联系中心的公司,允许带因特网接口的用户通过电子邮件、在线文本聊天或实时语音通信联系CSR。是称呼叫中心,电子联系中心,还是叫多媒体联系中心,目的都是一样的.即为个人客户提供服务经验,这需要对每个客户的要求和问题加以个别考虑。

为向CRS提供客户全面的意见.公司正努力集成所有的客户服务功能。过去CSR总是考虑费用,将通话时间控制在最短的做法受到鼓励。现在因特网能被用作另外的客户联系选择,创造机会对客户经验个性化处理,这增加了客户的忠诚度和销量。

多媒体联系中心将改变CSR的文化,CSR必须在技术上更为渊博,去处理所有形式的客户联系。问题不再是在最短的时间内回答问题。CSR必须提供非常个性化的、让客户满意的经验。新形式的客户联系能通过减少电话费,增加服务代表所能处理的客户询问的数量降低费用。

3Com(www.3com.com)提供了Contact Advantage这种联系中心解决方案。该方案提供了IP ContactIP联系,声音.电话和传真服务),Web Contact(网络联系,网络聊天、点击谈话和回电)及Ultimate Contact(集成了所有客户联系信道,提供全面的客户意见)。该方案以小至中型企业为目标。

一些公司可能选择外购联系中心设备。如果由于装备费、办公空间、服务代表和技术支持的原因,公司无力完成联系中心,这可能是对的。Stream International,Inc.(www.stream.com/Stream.nsf)向公司提供了外部采购的技术支持。其他提供外部采购联系中心设备的公司还包括Sitel Corportion(www.sitel.com) andTeleTech (www.teletech.com). Sitel Corporation有七十多个客户管理中心,处理来自世界各地的客户。TeleTech在其客户交互作用中心,使用它的多信道客户交互作用平台CyberCare。这给了客户代表一个单独的客户视角,而不管代表联系使用的方法。

4.1常见问答

网站上的常见问答(FAQ)项将帮助客户找到他们某些问题的答案,省去了客户服务代表处理问题的时间。这些问题如果没有人的交互作用就不可能回答。自助服务FAQ软件和网络FAQ软件帮助公司向一般客户问题提供有用的答案,跟踪用户使用这些设备。除了提供FAQ项,应当提供电话号码和适当的电子邮件地址。如有必要。允许人们浏览FAQ项后.为另外的信息与你联系.因为FAQ不可能回答每个客户的问题。另一个补充FAQ项的选择包括网站上的搜索引擎,允许用户敲进一个字或词组.找到网站上与特殊问题相关的信息。

4.2在线文本聊天

在线文本聊天提供了客户与客户代表之间通信的实时形式。如果公司提供了文本聊天,因为没有得到答案而可能决定离开网站的客户,就会选择与客户代表立即联系。一些客户代表一次可能不止处理一个文本聊天。而传统的服务代表通常一次只能处理一个客户。通过点击按钮,调出一个文本聊天的小窗口,客户在与服务代表聊天时还能继续浏览网站。这让客户代表观察到客户提问时在看的东西。文本“聊天”是即时的。然而,如果代表忙于很多聊天项,客户就会感到回复迟延。文本聊天也可能失去人类交流的生动性,因为没有声音语调和表达.当用文本写出来并被客户服务代表阅读时,信息的意思可能被曲解。

随着文本聊天和流动媒体变得普及,客户服务聊天可能包括实况电视会议,让客户服务代表和客户互相看着文本聊天或使用语音交流。这有助于建立一个特别的个性化标准。

5B2B电子客户关系管理

B2B电子商务的关键表现出来是有效的客户关系管理(CRM)。在B2B商务中,B2B CRM不同于B2CCRM.当你把产品销到另一个企业,你可能销给了某个并不是产品直接用户的人。因为产品用户的意见或评价可能与你从公司联系人那里听到的不同。请你的联系人与终端用户谈谈,会发现终端用户的建议会促进产品或服务的提高。通过听取建议,保持与现有客户的关系,继续改进服务,这都会建立客户的忠诚。

开展良好的伙伴关系管理(PRM),包括提高在公司及其伙伴间运作和作用的效率。伙伴可以包括转售商、发行人,通过为你提供增值服务或产品零部件而改进产品或服务的企业。管理这些关系包括集成系统以便与伙伴的买卖及营销运作结合起来。公司及其伙伴的系统集成会流水加工,提供技术协调.以提高效率,减少订货及履行的总时间。

6.完成e-CRM解决方案

使用并集成全部CRM工具的解决方案、软件或服务,提供了单一的客户视点,但这样做可能很昂贵。费用包括软件或服务本身的价格、现行系统的集成、系统维护和雇用服务代表。这些解决方案将继续更为有效。

E.piphany(www.epiphany.com)是一个客户关系管理解决方案的供应商。E.piphany E.5是一套基于网络的CRM解决方案,该方案允许你从现行的软件系统和第三方收集数据。数据包括客户、网站的访问客户、伙伴、会员和产品税收。E.piphany E.5分析这些数据,决定特殊商业活动的收益率、投资回报、客户的购买模式等等。数据分析能用于客户访问专用。E.piphany E.5也能为客户服务代表在雇员与客户相互作用时的行动方案提供实时的建议。

致谢

本文讨论了如何利用JAVA技术开发中国象棋网络对战平台系统

在当今电脑网络密布的世界当中,一个网络对战平台系统可以给我们的生活带来很多乐趣,且非常有价值,所以我们应当重视对它的相关研究与开发。在这次的毕业设计中,我应用了JAVA开发工具在WINDOWS平台上开发了一个网络对战平台系统,在这一重要的领域进行了相关的实践,不管是对我的研究能力,还是实际动手能力,还是资料查阅能力,都起了相当大的益处。所以,我决定认真总结这次毕业设计的经验,以及学习到的知识,来更加的充实自己的头脑和完善自己的知识结构。

系统着重研究并实现了网络应用的部分。根据实现的情况看,具有较友好的象棋对战房间和对战平台界面生成效果,整个系统达到了基本的设计要求,具有较高的研究价值。

一个月的忙碌和工作,本次毕业设计已经接近尾声,作为一个专科生的毕业设计,由于经验的匮乏,难免有许多考虑不周全的地方,如果没有导师的督促指导,以及一起工作的同学们的支持,想要完成这个设计是难以想象的。在这里再次感谢我的导师,林雄老师。

通过毕业设计,发现自己在理论研究和实际工作能力等方面都得到了提高,受益匪浅,同时在老师的指导和课题组同学的共同帮助下,及时总结研究成果,这些无疑会对我今后的工作和学习带来很大的帮助。

进入社会后,我以后会更加努力,是学校给我学习的机会,在以后的生活中继续提高自己,为自己创造更多的机会,更好的明天!

本文来源:https://www.2haoxitong.net/k/doc/88fcb0dbd15abe23482f4d7a.html

《中国象棋网络对战平台系统.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式