Class Arch
- java.lang.Object
-
- edu.isi.pegasus.planner.catalog.transformation.classes.Arch
-
- All Implemented Interfaces:
java.io.Serializable
public class Arch extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String_AMD64private static java.lang.String_INTEL32private static java.lang.String_INTEL64private static java.lang.String_SPARCV7private static java.lang.String_SPARCV9private static java.util.HashMap_table_private java.lang.String_value_static ArchAMD64static java.lang.Stringerrstatic ArchINTEL32static ArchINTEL64static ArchSPARCV7static ArchSPARCV9
-
Constructor Summary
Constructors Modifier Constructor Description protectedArch(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares if a given Arch object is equal to this.static ArchfromString(java.lang.String value)Creates a new Arch object given a arch string.static ArchfromValue(java.lang.String value)Creates a new Arch Object givan a arch string.java.lang.StringgetValue()Returns the value of the architecture as string.inthashCode()java.lang.StringtoString()Returns the string value of the architecture.
-
-
-
Field Detail
-
_value_
private java.lang.String _value_
-
_table_
private static java.util.HashMap _table_
-
_INTEL32
private static final java.lang.String _INTEL32
- See Also:
- Constant Field Values
-
_INTEL64
private static final java.lang.String _INTEL64
- See Also:
- Constant Field Values
-
_SPARCV7
private static final java.lang.String _SPARCV7
- See Also:
- Constant Field Values
-
_SPARCV9
private static final java.lang.String _SPARCV9
- See Also:
- Constant Field Values
-
_AMD64
private static final java.lang.String _AMD64
- See Also:
- Constant Field Values
-
INTEL32
public static final Arch INTEL32
-
INTEL64
public static final Arch INTEL64
-
SPARCV7
public static final Arch SPARCV7
-
SPARCV9
public static final Arch SPARCV9
-
AMD64
public static final Arch AMD64
-
err
public static final java.lang.String err
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of the architecture as string.- Returns:
- String
-
fromValue
public static Arch fromValue(java.lang.String value) throws java.lang.IllegalStateException
Creates a new Arch Object givan a arch string.- Parameters:
value- String- Returns:
- Arch
- Throws:
java.lang.IllegalStateException- Throws Exception if the architecure is not defined in this class.
-
fromString
public static Arch fromString(java.lang.String value) throws java.lang.IllegalStateException
Creates a new Arch object given a arch string.- Parameters:
value- String- Returns:
- Arch
- Throws:
java.lang.IllegalStateException- Throws Exception if the architecure is not defined in this class.
-
equals
public boolean equals(java.lang.Object obj)
Compares if a given Arch object is equal to this.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- Object- Returns:
- boolean
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the string value of the architecture.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-