cds.aladin
Class ScriptFactory

java.lang.Object
  extended by cds.aladin.ScriptFactory

public class ScriptFactory
extends java.lang.Object

This class aims at producing a TranslationScript, given a command name and its arguments

Version:
0.1 (kickoff: 18/02/2004)
Author:
Thomas Boch[CDS]

Constructor Summary
ScriptFactory()
           
 
Method Summary
 void addScript(TranslationScript script)
          Add a translation script to the robot knowledge
 TranslationScript getScript(java.lang.String cmdName, java.lang.String argsStr)
          Build a TranslationScript corresponding to the command line
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptFactory

public ScriptFactory()
Method Detail

getScript

public TranslationScript getScript(java.lang.String cmdName,
                                   java.lang.String argsStr)
Build a TranslationScript corresponding to the command line

Parameters:
cmdName - name of the command
argsStr - arguments string
Returns:
the script corresponding to this command, null if there is no script for this cmd

addScript

public void addScript(TranslationScript script)
Add a translation script to the robot knowledge

Parameters:
script - the translation script to add to the list of known scripts


Copyright © 2009 UDS/CNRS