KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > entity > AgentType


1 package hero.entity;
2
3 /*
4 * 25/03/2003 - 13:10:00
5 *
6 * AgentType.java -
7 * Copyright (C) 2003 Ecoo Team
8 * valdes@loria.fr
9 *
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */

25
26
27
28 public abstract class AgentType {
29
30     public static AgentType make(int type) {
31     if(type == hero.interfaces.Constants.Ag.ALARM) {return new AgentAlarmType();}
32     return new AgentAlarmType();
33     }
34
35 }
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Popular Tags