com.sri.oaa2.com
Class LibComUtils

java.lang.Object
  |
  +--com.sri.oaa2.com.LibComUtils

public class LibComUtils
extends java.lang.Object

Interface to LibComSocket


Constructor Summary
LibComUtils()
           
 
Method Summary
static java.lang.String gensym(java.lang.String prefix)
          Generates a unique identifier.
static IclTerm oaaResolveVariable(java.lang.String varName, java.lang.String[] cmdArgs)
          Temporarly in here, should be moved into LibOaa.java.
static IclTerm resolveAddress(IclTerm address, java.lang.String[] mCmdLine, IclTerm params, org.apache.log4j.Logger logger)
          Resolves the input address if it contains variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibComUtils

public LibComUtils()
Method Detail

gensym

public static java.lang.String gensym(java.lang.String prefix)
Generates a unique identifier.

Returns:
a unique identifier

oaaResolveVariable

public static IclTerm oaaResolveVariable(java.lang.String varName,
                                         java.lang.String[] cmdArgs)
Temporarly in here, should be moved into LibOaa.java. Applications only (Applets can not read files and don't have cmd line...) Needs a lot of work!


resolveAddress

public static IclTerm resolveAddress(IclTerm address,
                                     java.lang.String[] mCmdLine,
                                     IclTerm params,
                                     org.apache.log4j.Logger logger)
Resolves the input address if it contains variables.

Parameters:
address - address to resolve
mCmdLine - the command line areguments
params - parameters. This method checks if the resolve_vars parameter is "false" (default->"true"). If this parameter is "False", the address is not resolved.
logger - a logger to log errors and debug output