1 23 package org.objectweb.clif.scenario.util.isac.plugin; 24 25 import org.apache.log4j.Category; 26 import org.objectweb.clif.scenario.util.isac.util.tree.NodeDescription; 27 28 import java.util.*; 29 35 public class TimerDescription implements ActionDescription { 36 static Category cat = Category 37 .getInstance(TimerDescription.class.getName()); 38 private String name; 39 private String number; 40 private Vector params; 41 private Vector help; 42 private String guiKey; 43 44 57 public TimerDescription(String n, String nb, Vector p, Vector h) { 58 cat.debug("-> constructor"); 59 this.name = n; 60 this.number = nb; 61 this.params = p; 62 this.help = h; 63 this.guiKey = null; 64 } 65 66 69 public void createNodeDescription(NodeDescription desc) { 70 cat.debug("-> createNodeDescription"); 71 desc.setActionName(this.name); 72 Hashtable paramsValues = new Hashtable(); 73 for (int i = 0; i < this.params.size(); i++) 74 paramsValues.put(((ParameterDescription) this.params.elementAt(i)) 75 .getName(), ""); 76 desc.setParams(paramsValues); 77 } 78 79 82 public String getGUIKey() { 83 cat.debug("-> getGUIKey"); 84 return guiKey; 85 } 86 87 90 public void setGUIKey(String key) { 91 cat.debug("-> setGUIKey"); 92 this.guiKey = key; 93 } 94 99 public Vector getHelp() { 100 cat.debug("-> getHelp"); 101 return help; 102 } 103 104 109 public String getName() { 110 cat.debug("-> getName"); 111 return name; 112 } 113 114 119 public String getNumber() { 120 cat.debug("-> getNumber"); 121 return number; 122 } 123 124 129 public Vector getParams() { 130 cat.debug("-> getParams"); 131 return params; 132 } 133 } | Popular Tags |