de.upb.hni.vmagic.libraryunit
Class Configuration

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.libraryunit.LibraryUnit
          extended by de.upb.hni.vmagic.libraryunit.Configuration
All Implemented Interfaces:
DeclarativeRegion, NamedEntity

public class Configuration
extends LibraryUnit
implements NamedEntity

Configuration.


Constructor Summary
Configuration(java.lang.String identifier, Entity entity, AbstractBlockConfiguration blockConfiguration)
          Creates a configuration.
 
Method Summary
 AbstractBlockConfiguration getBlockConfiguration()
          Returns the block configuration.
 java.util.List<ConfigurationDeclarativeItem> getDeclarations()
          Returns the list of declarations in this configuration.
 Entity getEntity()
          Returns the configured entity.
 java.lang.String getIdentifier()
          Returns the identifier of this configuration.
 Scope getScope()
          Returns the scope of this declarative region.
 void setBlockConfiguration(AbstractBlockConfiguration blockConfiguration)
          Sets the block configuration.
 void setEntity(Entity entity)
          Sets the configured entity.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this configuration.
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration(java.lang.String identifier,
                     Entity entity,
                     AbstractBlockConfiguration blockConfiguration)
Creates a configuration.

Parameters:
identifier - the identifier of this configuration
entity - the entity
blockConfiguration - the block configuration
Method Detail

getEntity

public Entity getEntity()
Returns the configured entity.

Returns:
the configured entity

setEntity

public void setEntity(Entity entity)
Sets the configured entity.

Parameters:
entity - the configured entity

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier of this configuration.

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the identifier of this configuration.

Parameters:
identifier - the identifier

getDeclarations

public java.util.List<ConfigurationDeclarativeItem> getDeclarations()
Returns the list of declarations in this configuration.

Returns:
the list of declarations

getBlockConfiguration

public AbstractBlockConfiguration getBlockConfiguration()
Returns the block configuration.

Returns:
the block configuration

setBlockConfiguration

public void setBlockConfiguration(AbstractBlockConfiguration blockConfiguration)
Sets the block configuration.

Parameters:
blockConfiguration - the block configuration

getScope

public Scope getScope()
Description copied from interface: DeclarativeRegion
Returns the scope of this declarative region.

Specified by:
getScope in interface DeclarativeRegion
Returns:
the scope