00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 package com.scalagent.kjoram;
00025
00026 import java.util.Vector;
00027 import java.util.Hashtable;
00028
00029 public abstract class Destination
00030 extends com.scalagent.kjoram.admin.AdministeredObject
00031 {
00033 protected String agentId;
00034
00035
00041 public Destination(String agentId)
00042 {
00043 super(agentId);
00044 this.agentId = agentId;
00045
00046 if (JoramTracing.dbgClient)
00047 JoramTracing.log(JoramTracing.DEBUG, this + ": created.");
00048 }
00049
00053 public Destination()
00054 {}
00055
00056
00058 public String getName()
00059 {
00060 return agentId;
00061 }
00062
00067 public boolean equals(Object obj)
00068 {
00069 if (! (obj instanceof Destination))
00070 return false;
00071
00072 return (agentId.equals(((Destination) obj).getName()));
00073 }
00074
00075 public void setAgentId(String agentId) {
00076 this.agentId = agentId;
00077 }
00078
00083 public Hashtable code() {
00084 Hashtable h = super.code();
00085 h.put("agentId",agentId);
00086 return h;
00087 }
00088 }