gov.llnl.babel.config
Class Profile

java.lang.Object
  extended by gov.llnl.babel.config.Profile

public class Profile
extends java.lang.Object

Class Profile defines one particular machine configuration profile for the Babel compiler. A profile consists of the following items:

The configuration information is stored as (keyword,value) pairs of strings in a Map. Any of the above values except the profile name and programming language name may be null if its value was not provided from the configuration input file.


Constructor Summary
Profile(java.lang.String profile_name, java.lang.String language)
          The Profile constructor takes a profile name and a language as string arguments.
 
Method Summary
 java.lang.String getCompilerName()
          Get the compiler name for which this profile is valid.
 java.lang.String getCompilerVersion()
          Get the compiler version number for which this profile is valild.
 java.util.Map getConfiguration()
          Get the configuration information for this profile.
 java.lang.String getCPU()
          Get the CPU description for which the profile is valid.
 java.lang.String getDescription()
          Get a long HTML description of the profile.
 java.lang.String getLanguage()
          Return the name of the language for which this profile was defined.
 java.lang.String getOS()
          Get the operating system description for which the profile is valid.
 java.lang.String getOSRelease()
          Get the operating system release version for which this profile is valid.
 java.lang.String getProfileName()
          Return the name of the profile as a string.
 java.lang.String getSummary()
          Get a brief summary of the profile.
 void setCompilerName(java.lang.String compiler)
          Set the compiler name for this profile.
 void setCompilerVersion(java.lang.String version)
          Set the compiler version for this profile.
 void setConfiguration(java.util.Map configuration)
          Set the configuration information for this profile.
 void setCPU(java.lang.String cpu)
          Set the CPU description for the profile.
 void setDescription(java.lang.String description)
          Set the description for the profile.
 void setOS(java.lang.String os)
          Set the operating system description for this profile.
 void setOSRelease(java.lang.String release)
          Set the operating system release for this profile.
 void setSummary(java.lang.String summary)
          Set the brief summary for the profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile

public Profile(java.lang.String profile_name,
               java.lang.String language)
The Profile constructor takes a profile name and a language as string arguments. These two arguments should not be null.

Method Detail

getProfileName

public java.lang.String getProfileName()
Return the name of the profile as a string.


getLanguage

public java.lang.String getLanguage()
Return the name of the language for which this profile was defined.


getSummary

public java.lang.String getSummary()
Get a brief summary of the profile. This summary may be null if it was not provided in the configuration input file.


setSummary

public void setSummary(java.lang.String summary)
Set the brief summary for the profile.


getDescription

public java.lang.String getDescription()
Get a long HTML description of the profile. This description may be null if it was not provided in the configuration input file.


setDescription

public void setDescription(java.lang.String description)
Set the description for the profile. This string is intended to be a long HTML description of the purpose of the profile.


getCPU

public java.lang.String getCPU()
Get the CPU description for which the profile is valid. This description may be null if it was not provided in the configuration input file.


setCPU

public void setCPU(java.lang.String cpu)
Set the CPU description for the profile.


getOS

public java.lang.String getOS()
Get the operating system description for which the profile is valid. This return value may be null if an OS description was not provided in the configuration input file.


setOS

public void setOS(java.lang.String os)
Set the operating system description for this profile.


getOSRelease

public java.lang.String getOSRelease()
Get the operating system release version for which this profile is valid. This return value may be null if an OS version was not provided in the configuration input file.


setOSRelease

public void setOSRelease(java.lang.String release)
Set the operating system release for this profile.


getCompilerName

public java.lang.String getCompilerName()
Get the compiler name for which this profile is valid. This return value may be null if a compiler name was not provided in the configuration input file.


setCompilerName

public void setCompilerName(java.lang.String compiler)
Set the compiler name for this profile.


getCompilerVersion

public java.lang.String getCompilerVersion()
Get the compiler version number for which this profile is valild. This return value may be null if a compiler version number was not provided in the configuration input file.


setCompilerVersion

public void setCompilerVersion(java.lang.String version)
Set the compiler version for this profile.


getConfiguration

public java.util.Map getConfiguration()
Get the configuration information for this profile. The configuration information is stored as a Map of keyword-value pairs of strings that describe the profile options and associated selections for each option. This return may be null if there are no valid options for this particular profile.


setConfiguration

public void setConfiguration(java.util.Map configuration)
Set the configuration information for this profile.