gov.llnl.babel.config
Class Profile
java.lang.Object
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:
- a profile name
- the programming language name
- a brief summary of the profile
- a longer HTML description of the profile
- a CPU machine hardware description (e.g., sparc)
- an OS operating system description (e.g., SunOS)
- an OS release number (e.g., 5.7)
- a compiler name (e.g., KCC)
- a compiler version (e.g., 4.3d)
- the configuration information
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.
Profile(String profile_name, String language) - The
Profile constructor takes a profile name and a
language as string arguments.
|
String | getCPU() - Get the CPU description for which the profile is valid.
|
String | getCompilerName() - Get the compiler name for which this profile is valid.
|
String | getCompilerVersion() - Get the compiler version number for which this profile is
valild.
|
Map | getConfiguration() - Get the configuration information for this profile.
|
String | getDescription() - Get a long HTML description of the profile.
|
String | getLanguage() - Return the name of the language for which this profile was
defined.
|
String | getOS() - Get the operating system description for which the profile is
valid.
|
String | getOSRelease() - Get the operating system release version for which this profile
is valid.
|
String | getProfileName() - Return the name of the profile as a string.
|
String | getSummary() - Get a brief summary of the profile.
|
void | setCPU(String cpu) - Set the CPU description for the profile.
|
void | setCompilerName(String compiler) - Set the compiler name for this profile.
|
void | setCompilerVersion(String version) - Set the compiler version for this profile.
|
void | setConfiguration(Map configuration) - Set the configuration information for this profile.
|
void | setDescription(String description) - Set the description for the profile.
|
void | setOS(String os) - Set the operating system description for this profile.
|
void | setOSRelease(String release) - Set the operating system release for this profile.
|
void | setSummary(String summary) - Set the brief summary for the profile.
|
Profile
public Profile(String profile_name,
String language)
The Profile
constructor takes a profile name and a
language as string arguments. These two arguments should not be
null.
getCPU
public 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.
getCompilerName
public 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.
getCompilerVersion
public 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.
getConfiguration
public 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.
getDescription
public 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.
getLanguage
public String getLanguage()
Return the name of the language for which this profile was
defined.
getOS
public 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.
getOSRelease
public 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.
getProfileName
public String getProfileName()
Return the name of the profile as a string.
getSummary
public String getSummary()
Get a brief summary of the profile. This summary may be null if
it was not provided in the configuration input file.
setCPU
public void setCPU(String cpu)
Set the CPU description for the profile.
setCompilerName
public void setCompilerName(String compiler)
Set the compiler name for this profile.
setCompilerVersion
public void setCompilerVersion(String version)
Set the compiler version for this profile.
setConfiguration
public void setConfiguration(Map configuration)
Set the configuration information for this profile.
setDescription
public void setDescription(String description)
Set the description for the profile. This string is intended to
be a long HTML description of the purpose of the profile.
setOS
public void setOS(String os)
Set the operating system description for this profile.
setOSRelease
public void setOSRelease(String release)
Set the operating system release for this profile.
setSummary
public void setSummary(String summary)
Set the brief summary for the profile.