edu.byu.ece.edif.util.jsap.commandgroups
Class TechnologyCommandGroup

java.lang.Object
  extended by edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
      extended by edu.byu.ece.edif.util.jsap.commandgroups.TechnologyCommandGroup
All Implemented Interfaces:
CommandGroup

public class TechnologyCommandGroup
extends AbstractCommandGroup

Author:
Derrick Gibelyou

Field Summary
protected static com.martiansoftware.jsap.FlaggedOption _part
           
static java.lang.String PART
           
protected static java.lang.String part_str
           
protected static java.lang.String tech_str
           
protected static java.lang.String VIRTEX
           
protected static java.lang.String VIRTEX2
           
protected static java.lang.String VIRTEX4
           
 
Fields inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
_options
 
Constructor Summary
TechnologyCommandGroup()
          Creates the Technology Commandline options.
 
Method Summary
static NMRArchitecture getArch(com.martiansoftware.jsap.JSAPResult result)
           
protected static XilinxNMRArchitecture getArchitecture(java.lang.String technologyString)
          Return a TMRArchitecture object for the specified technology.
static java.lang.String getPart(com.martiansoftware.jsap.JSAPResult result)
           
static void getPartFromEDIF(com.martiansoftware.jsap.JSAPResult result, EdifEnvironment env)
          Scans the EDIF Environment for the PART string.
static java.lang.String getTech(com.martiansoftware.jsap.JSAPResult result)
           
 
Methods inherited from class edu.byu.ece.edif.util.jsap.commandgroups.AbstractCommandGroup
addCommand, getCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PART

public static final java.lang.String PART
See Also:
Constant Field Values

_part

protected static com.martiansoftware.jsap.FlaggedOption _part

part_str

protected static java.lang.String part_str

tech_str

protected static java.lang.String tech_str

VIRTEX

protected static final java.lang.String VIRTEX
See Also:
Constant Field Values

VIRTEX2

protected static final java.lang.String VIRTEX2
See Also:
Constant Field Values

VIRTEX4

protected static final java.lang.String VIRTEX4
See Also:
Constant Field Values
Constructor Detail

TechnologyCommandGroup

public TechnologyCommandGroup()
Creates the Technology Commandline options. Make sure to call getPartFromEDIF() after the commandline has been parsed.

Method Detail

getArch

public static NMRArchitecture getArch(com.martiansoftware.jsap.JSAPResult result)

getPart

public static java.lang.String getPart(com.martiansoftware.jsap.JSAPResult result)

getPartFromEDIF

public static void getPartFromEDIF(com.martiansoftware.jsap.JSAPResult result,
                                   EdifEnvironment env)
                            throws java.lang.IllegalArgumentException
Scans the EDIF Environment for the PART string. if it exists and is valid, the default is assigned. Otherwise throw an exception. If you do not require the part to be set, then you can catch and ignore the exception.

After calling this function, getPart(), getTech(), and getArch() can be called normally.

Parameters:
result -
env -
Throws:
java.lang.IllegalArgumentException

getTech

public static java.lang.String getTech(com.martiansoftware.jsap.JSAPResult result)

getArchitecture

protected static XilinxNMRArchitecture getArchitecture(java.lang.String technologyString)
Return a TMRArchitecture object for the specified technology.

Parameters:
technologyString - The specified technology
Returns:
A TMRArchtecture object