| 1 23 package org.objectweb.clif.scenario.util.isac.util.tree.nodes; 24 25 import java.util.Vector ; 26 27 import org.objectweb.clif.scenario.util.isac.util.tree.Node; 28 import org.objectweb.clif.scenario.util.isac.util.tree.NodeDescription; 29 30 37 public class ControlerNode { 38 39 44 public static Vector getHelp(String type) { 45 if (type.equals(Node.IF)) 46 return IfNode.getHelp() ; 47 if (type.equals(Node.WHILE)) 48 return WhileNode.getHelp() ; 49 if (type.equals(Node.PREEMPTIVE)) 50 return PreemptiveNode.getHelp() ; 51 return null ; 52 } 53 54 61 public static NodeDescription createNodeDescription(String plugin, String type, String name) { 62 if (type.equals(Node.IF)) 63 return IfNode.createNodeDescription(plugin, name) ; 64 if (type.equals(Node.WHILE)) 65 return WhileNode.createNodeDescription(plugin, name) ; 66 if (type.equals(Node.PREEMPTIVE)) 67 return PreemptiveNode.createNodeDescription(plugin, name) ; 68 return null ; 69 } 70 } 71 | Popular Tags |