org.fraid.utils
Class CommandLineInitializer

java.lang.Object
  extended by org.fraid.utils.CommandLineInitializer

public class CommandLineInitializer
extends java.lang.Object


Constructor Summary
CommandLineInitializer()
           
 
Method Summary
static IOStructure initFromCommandLine(java.lang.String[] aCmdLineArgs)
          If the system is initialized through command line, this function processes the command line parameters.
static Complex loadFile(java.lang.String aFileName)
          Executes a FrAid program saved to file.
static void printLoadSymbInfo(int aCount, java.lang.String aLocation)
          Helper function.
protected static void processOtherCmdLineArgs(CommandLineManager aCmdManager)
          If you need further command line processing subclass Utils and implement this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineInitializer

public CommandLineInitializer()
Method Detail

initFromCommandLine

public static IOStructure initFromCommandLine(java.lang.String[] aCmdLineArgs)
If the system is initialized through command line, this function processes the command line parameters. The source is a good example how to work with FraidIO and the symbol table.

Parameters:
aCmdLineArgs - a String[] value
Returns:
a Reader value

printLoadSymbInfo

public static void printLoadSymbInfo(int aCount,
                                     java.lang.String aLocation)
Helper function.

Parameters:
aCount - an int value
aLocation - a String value

loadFile

public static Complex loadFile(java.lang.String aFileName)
                        throws java.lang.Exception
Executes a FrAid program saved to file.

Parameters:
aFileName - file name
Throws:
java.lang.Exception - if an error occurs

processOtherCmdLineArgs

protected static void processOtherCmdLineArgs(CommandLineManager aCmdManager)
If you need further command line processing subclass Utils and implement this method. initFromCommandLine will call it. Currently does not do anything.

Parameters:
aCmdManager - a CommandLineManager value


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.