Tabnine Logo
Environment.getVariableValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getVariableValue
method
in
weka.core.Environment

Best Java code snippets using weka.core.Environment.getVariableValue (Showing top 20 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public Object getSelectedItem() {
  Object item = super.getSelectedItem();
  if (item instanceof String) {
   if (env.getVariableValue((String) item) != null) {
    String newS = "${" + (String) item + "}";
    item = newS;
   }
  }
  return item;
 }
};
origin: Waikato/weka-trunk

 @Override
 public Object getSelectedItem() {
  Object item = super.getSelectedItem();
  if (item instanceof String) {
   if (env.getVariableValue((String) item) != null) {
    String newS = "${" + (String) item + "}";
    item = newS;
   }
  }
  return item;
 }
};
origin: Waikato/weka-trunk

 @Override
 public Object getSelectedItem() {
  Object item = super.getSelectedItem();
  if (item instanceof String) {
   if (env.getVariableValue((String) item) != null) {
    String newS = "${" + (String) item + "}";
    item = newS;
   }
  }
  return item;
 }
};
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public String getProperty(String key) {
  // allow system-wide properties to override
  if (m_env == null) {
   m_env = Environment.getSystemWide();
  }
  String result = m_env.getVariableValue(key);

  if (result == null) {
   result = super.getProperty(key);
  }

  return result;
 }
}
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public Object getSelectedItem() {
  Object item = super.getSelectedItem();
  if (item instanceof String) {
   if (env.getVariableValue((String) item) != null) {
    String newS = "${" + (String) item + "}";
    item = newS;
   }
  }
  return item;
 }
};
origin: Waikato/weka-trunk

 @Override
 public String getProperty(String key) {
  // allow system-wide properties to override
  if (m_env == null) {
   m_env = Environment.getSystemWide();
  }
  String result = m_env.getVariableValue(key);

  if (result == null) {
   result = super.getProperty(key);
  }

  return result;
 }
}
origin: Waikato/weka-trunk

/**
 * Returns entries from the WEKA_CLASSPATH property (if set).
 *
 * @return an array of URLs, one for each part of the WEKA_CLASSPATH
 */
private URL[] getWekaClasspathEntries() {
 String wekaCp =
  Environment.getSystemWide().getVariableValue("WEKA_CLASSPATH");
 // assume the system separator is being used
 String sep = System.getProperty("path.separator", ":");
 if (wekaCp != null) {
  return getParts(wekaCp, sep);
 }
 return new URL[0];
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Returns entries from the WEKA_CLASSPATH property (if set).
 *
 * @return an array of URLs, one for each part of the WEKA_CLASSPATH
 */
private URL[] getWekaClasspathEntries() {
 String wekaCp =
  Environment.getSystemWide().getVariableValue("WEKA_CLASSPATH");
 // assume the system separator is being used
 String sep = System.getProperty("path.separator", ":");
 if (wekaCp != null) {
  return getParts(wekaCp, sep);
 }
 return new URL[0];
}
origin: nz.ac.waikato.cms.weka/distributedWekaBase

String numMaps = m_env.getVariableValue(TOTAL_NUMBER_OF_MAPS);
if (numMaps != null && numMaps.length() > 0) {
 int nM = Integer.parseInt(numMaps);
origin: nz.ac.waikato.cms.weka/weka-stable

private void buildAssociations(Instances data) throws Exception {
 // see if there is an environment variable with
 // options for the associator
 if (m_env != null && m_Associator instanceof OptionHandler) {
  String opts = m_env
   .getVariableValue("weka.gui.beans.associator.schemeOptions");
  if (opts != null && opts.length() > 0) {
   String[] options = Utils.splitOptions(opts);
   if (options.length > 0) {
    try {
     ((OptionHandler) m_Associator).setOptions(options);
    } catch (Exception ex) {
     String warningMessage = "[Associator] WARNING: unable to set options \""
      + opts + "\"for " + m_Associator.getClass().getName();
     if (m_log != null) {
      m_log.logMessage(warningMessage);
     } else {
      System.err.print(warningMessage);
     }
    }
   }
  }
 }
 m_Associator.buildAssociations(data);
}
origin: Waikato/weka-trunk

private void buildAssociations(Instances data) throws Exception {
 // see if there is an environment variable with
 // options for the associator
 if (m_env != null && m_Associator instanceof OptionHandler) {
  String opts = m_env
   .getVariableValue("weka.gui.beans.associator.schemeOptions");
  if (opts != null && opts.length() > 0) {
   String[] options = Utils.splitOptions(opts);
   if (options.length > 0) {
    try {
     ((OptionHandler) m_Associator).setOptions(options);
    } catch (Exception ex) {
     String warningMessage = "[Associator] WARNING: unable to set options \""
      + opts + "\"for " + m_Associator.getClass().getName();
     if (m_log != null) {
      m_log.logMessage(warningMessage);
     } else {
      System.err.print(warningMessage);
     }
    }
   }
  }
 }
 m_Associator.buildAssociations(data);
}
origin: nz.ac.waikato.cms.weka/weka-stable

if (env.getVariableValue(var.trim()) == null) {
origin: Waikato/weka-trunk

if (env.getVariableValue(var.trim()) == null) {
origin: nz.ac.waikato.cms.weka/weka-stable

String wh = env.getVariableValue("WEKA_HOME");
if (wh != null) {
 WEKA_HOME = new File(wh);
  env.getVariableValue("weka.core.wekaPackageRepositoryURL");
 if (repURL == null || repURL.length() == 0) {
String offline = env.getVariableValue("weka.packageManager.offline");
if (offline != null) {
 m_offline = offline.equalsIgnoreCase("true");
 env.getVariableValue("weka.packageManager.loadPackages");
if (loadPackages == null) {
 loadPackages = env.getVariableValue("weka.core.loadPackages");
  if (loadPackages == null) {
   loadPackages = env.getVariableValue("weka.core.loadPackages");
origin: nz.ac.waikato.cms.weka/weka-stable

String val = env.getVariableValue(key.getKey());
if (val != null) {
 value = stringToT(val, defaultValue);
origin: Waikato/weka-trunk

String val = env.getVariableValue(key.getKey());
if (val != null) {
 value = stringToT(val, defaultValue);
origin: nz.ac.waikato.cms.weka/weka-stable

Set<String> vars = flowEnv.getVariableNames();
for (String var : vars) {
 env.put(var, flowEnv.getVariableValue(var));
origin: Waikato/weka-trunk

Set<String> vars = flowEnv.getVariableNames();
for (String var : vars) {
 env.put(var, flowEnv.getVariableValue(var));
origin: nz.ac.waikato.cms.weka/weka-stable

&& currentEnv.getVariableValue(key) == null) {
getStepManager()
 .logDetailed("Setting variable: " + key + " = " + value);
origin: Waikato/weka-trunk

&& currentEnv.getVariableValue(key) == null) {
getStepManager()
 .logDetailed("Setting variable: " + key + " = " + value);
weka.coreEnvironmentgetVariableValue

Javadoc

Get the value for a particular variable.

Popular methods of Environment

  • <init>
    Constructor that makes a new Environment object containing all the entries in the supplied one
  • addVariable
    Add a variable to the internal map of this properties object.
  • getSystemWide
    Get the singleton system-wide (visible to every class in the running VM) set of environment variable
  • substitute
    Substitute a variable names for their values in the given string.
  • addVariableSystemWide
    Add a a variable to the internal map of this properties object and to the global system-wide environ
  • containsEnvVariables
    Tests for the presence of environment variables.
  • getVariableNames
    Get the names of the variables (keys) stored in the internal map.

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now