C# Class SetIdFromNames, libroadrunner-deps

This class implements an identifier transformer, that means it can be used to rename all sbase elements.
Inheritance: libsbmlcs.IdentifierTransformer
Mostra file Open project: sys-bio/libroadrunner-deps Class Usage Examples

Public Methods

Method Description
Main ( string args ) : int

The program is to be invoked with two arguments, the input and output file.

NameToSbmlId ( string name ) : string
SetIdFromNames ( List ids ) : System

Constructor initializing this transformer with a list of ids that are currently used in the model (and thus newly generated ids have to be different)

getAllIds ( SBaseList allElements ) : List
transform ( SBase element ) : int

The function actually doing the transforming. This function is called once for each SBase element in the model.

Private Methods

Method Description
getValidIdForName ( string name ) : string

Method Details

Main() public static method

The program is to be invoked with two arguments, the input and output file.
public static Main ( string args ) : int
args string command line arguments
return int

NameToSbmlId() public method

public NameToSbmlId ( string name ) : string
name string
return string

SetIdFromNames() public method

Constructor initializing this transformer with a list of ids that are currently used in the model (and thus newly generated ids have to be different)
public SetIdFromNames ( List ids ) : System
ids List vector of current ids
return System

getAllIds() public static method

public static getAllIds ( SBaseList allElements ) : List
allElements libsbmlcs.SBaseList
return List

transform() public method

The function actually doing the transforming. This function is called once for each SBase element in the model.
public transform ( SBase element ) : int
element libsbmlcs.SBase the current element
return int