edu.isi.pegasus.planner.catalog.transformation.classes
Class Os

java.lang.Object
  extended by edu.isi.pegasus.planner.catalog.transformation.classes.Os
All Implemented Interfaces:
Serializable

public class Os
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
private static String _AIX
           
private static String _LINUX
           
private static String _SUNOS
           
private static HashMap _table_
           
private  String _value_
           
private static String _WINDOWS
           
static Os AIX
           
static String err
           
static Os LINUX
           
static Os SUNOS
           
static Os WINDOWS
           
 
Constructor Summary
protected Os(String value)
           
 
Method Summary
 boolean equals(Object obj)
          Compares if a given Os object is equal to this.
static Os fromString(String value)
          Creates a new Os object given an os string.
static Os fromValue(String value)
          Creates a new Os object given an os string.
 String getValue()
          Returns the value of the operating system as string.
 int hashCode()
           
 String toString()
          Returns the string value of the operating system.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_value_

private String _value_

_table_

private static HashMap _table_

_LINUX

private static final String _LINUX
See Also:
Constant Field Values

_SUNOS

private static final String _SUNOS
See Also:
Constant Field Values

_AIX

private static final String _AIX
See Also:
Constant Field Values

_WINDOWS

private static final String _WINDOWS
See Also:
Constant Field Values

LINUX

public static final Os LINUX

SUNOS

public static final Os SUNOS

AIX

public static final Os AIX

WINDOWS

public static final Os WINDOWS

err

public static final String err
See Also:
Constant Field Values
Constructor Detail

Os

protected Os(String value)
Method Detail

getValue

public String getValue()
Returns the value of the operating system as string.

Returns:
String

fromValue

public static Os fromValue(String value)
                    throws IllegalStateException
Creates a new Os object given an os string.

Parameters:
value - String
Returns:
Os
Throws:
IllegalStateException - Throws Exception if the operating system is not defined in this class.

fromString

public static Os fromString(String value)
                     throws IllegalStateException
Creates a new Os object given an os string.

Parameters:
value - String
Returns:
Os
Throws:
IllegalStateException - Throws Exception if the operating system is not defined in this class.

equals

public boolean equals(Object obj)
Compares if a given Os object is equal to this.

Overrides:
equals in class Object
Parameters:
obj - Object
Returns:
boolean

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Returns the string value of the operating system.

Overrides:
toString in class Object
Returns:
String


Copyright © 2011 The University of Southern California. All Rights Reserved.