1 23 package org.objectweb.clif.scenario.util.isac.engine.behavior.node.description; 24 25 import java.util.Hashtable ; 26 27 33 public class ActionDescription { 34 private String sessionObjectId ; 36 private int methodNumber ; 37 private Hashtable params ; 38 39 42 public ActionDescription() { 43 this.sessionObjectId = null ; 44 this.methodNumber = -1 ; 45 this.params = new Hashtable () ; 46 } 47 48 54 public ActionDescription(String so, int mn) { 55 this.sessionObjectId = so ; 56 this.methodNumber = mn ; 57 this.params = new Hashtable () ; 58 } 59 60 67 public ActionDescription(String so, int mn, Hashtable p) { 68 this.sessionObjectId = so ; 69 this.methodNumber = mn ; 70 this.params = p ; 71 } 72 73 78 public void addParamsValue(String name, String value) { 79 this.params.put(name, value) ; 80 } 81 82 86 89 public int getMethodNumber() { 90 return methodNumber; 91 } 92 95 public Hashtable getParams() { 96 return params; 97 } 98 101 public String getSessionObjectId() { 102 return sessionObjectId; 103 } 104 107 public void setParams(Hashtable params) { 108 this.params = params; 109 } 110 113 public void setMethodNumber(int methodNumber) { 114 this.methodNumber = methodNumber; 115 } 116 119 public void setSessionObject(String sessionObjectId) { 120 this.sessionObjectId = sessionObjectId; 121 } 122 123 127 public String toString() { 128 String result = "" ; 129 result = result.concat("mn : "+methodNumber+"\n") ; 130 result = result.concat("so :"+sessionObjectId+" \n") ; 131 result = result.concat("params = " + this.params) ; 132 return result ; 133 } 134 135 } 136 | Popular Tags |