org.jmodelica.modelica.compiler.AliasManager Class Reference

AliasManager contains the connection sets of an FClass. More...

List of all members.

Public Member Functions

String getAliasErrorMessage ()
 Getter for alias error message.
boolean aliasError ()
 Check if there was an alias error.
LinkedHashSet< LinkedHashSet
< AliasVariable > > 
getAliasSets ()
 Get the set of alias sets.
AliasVariable getIterationVariable (LinkedHashSet< AliasVariable > aliasSet)
 Get the iteration variable of an alias set.
AliasVariable getAliasVariable (FVariable fv)
 Get the AliasVariable object corresponding to an FVariable.
LinkedHashSet< AliasVariablegetAliasSet (AliasVariable alias)
 Retrieve the alias set corresponding to an alias variable.
LinkedHashSet< AliasVariablegetAliasSet (FVariable alias)
 Retrieve the alias set corresponding to an FVariable.
void addAliasVariables (FVariable fv1, FVariable fv2, boolean neg)
 Add a pair of alias variables to the alias manager.
String printAliasSet (LinkedHashSet< AliasVariable > aliasSet)
String printAliasSets ()
 Print the alias sets.


Detailed Description

AliasManager contains the connection sets of an FClass.

The alias sets are build by adding pairs of FVariables, in addition to information about whether the alias pair is negated. class :0


Member Function Documentation

void org.jmodelica.modelica.compiler.AliasManager.addAliasVariables ( FVariable  fv1,
FVariable  fv2,
boolean  neg 
)

Add a pair of alias variables to the alias manager.

Parameters:
fv1 An FVariable.
fv2 Another FVariable.
neg True if the alias pair is negated, otherwise false.

boolean org.jmodelica.modelica.compiler.AliasManager.aliasError (  ) 

Check if there was an alias error.

The error message can be retreived by calling the method getAliasManagerError.

Returns:
True if there was an alias error, otherwise false.

String org.jmodelica.modelica.compiler.AliasManager.getAliasErrorMessage (  ) 

Getter for alias error message.

Returns:
The error message.

LinkedHashSet<AliasVariable> org.jmodelica.modelica.compiler.AliasManager.getAliasSet ( FVariable  alias  ) 

Retrieve the alias set corresponding to an FVariable.

Returns null if the FVariable is not present in an alias set.

Parameters:
alias An FVariable.
Returns:
The alias set corresponding to the alias variable.

LinkedHashSet<AliasVariable> org.jmodelica.modelica.compiler.AliasManager.getAliasSet ( AliasVariable  alias  ) 

Retrieve the alias set corresponding to an alias variable.

Returns null if alias variable not present in an alias set.

Parameters:
alias An alias variable.
Returns:
The alias set corresponding to the alias variable.

LinkedHashSet<LinkedHashSet<AliasVariable> > org.jmodelica.modelica.compiler.AliasManager.getAliasSets (  ) 

Get the set of alias sets.

Returns:
A set containing the alias sets.

AliasVariable org.jmodelica.modelica.compiler.AliasManager.getAliasVariable ( FVariable  fv  ) 

Get the AliasVariable object corresponding to an FVariable.

Parameters:
fv An FVariable object
Returns:
An AliasVariable object if the FVariable is in an alias set, otherwise null.

AliasVariable org.jmodelica.modelica.compiler.AliasManager.getIterationVariable ( LinkedHashSet< AliasVariable aliasSet  ) 

Get the iteration variable of an alias set.

Parameters:
aliasSet An alias set.
Returns:
The iteration variable of the alias set.

String org.jmodelica.modelica.compiler.AliasManager.printAliasSet ( LinkedHashSet< AliasVariable aliasSet  ) 

String org.jmodelica.modelica.compiler.AliasManager.printAliasSets (  ) 

Print the alias sets.

Returns:
A string containing the alias sets.


The documentation for this class was generated from the following file:

Generated on Fri Oct 7 14:49:16 2011 for JModelica.org by  doxygen 1.5.8