1 24 package com.scalagent.kjoram; 25 26 import java.util.Vector ; 27 import java.util.Hashtable ; 28 29 public abstract class Destination 30 extends com.scalagent.kjoram.admin.AdministeredObject 31 { 32 33 protected String agentId; 34 35 36 41 public Destination(String agentId) 42 { 43 super(agentId); 44 this.agentId = agentId; 45 46 if (JoramTracing.dbgClient) 47 JoramTracing.log(JoramTracing.DEBUG, this + ": created."); 48 } 49 50 53 public Destination() 54 {} 55 56 57 58 public String getName() 59 { 60 return agentId; 61 } 62 63 67 public boolean equals(Object obj) 68 { 69 if (! (obj instanceof Destination)) 70 return false; 71 72 return (agentId.equals(((Destination) obj).getName())); 73 } 74 75 public void setAgentId(String agentId) { 76 this.agentId = agentId; 77 } 78 79 83 public Hashtable code() { 84 Hashtable h = super.code(); 85 h.put("agentId",agentId); 86 return h; 87 } 88 } 89 | Popular Tags |