de.upb.hni.vmagic.declaration
Class Component

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.declaration.DeclarativeItem
          extended by de.upb.hni.vmagic.declaration.Component
All Implemented Interfaces:
BlockDeclarativeItem, DeclarativeItemMarker, PackageDeclarativeItem, DeclarativeRegion, NamedEntity

public class Component
extends DeclarativeItem
implements BlockDeclarativeItem, PackageDeclarativeItem, NamedEntity, DeclarativeRegion

Component.


Constructor Summary
Component(Entity entity)
          Creates a component based on an entity.
Component(java.lang.String identifier)
          Creates a component.
 
Method Summary
 java.util.List<VhdlObjectProvider<Constant>> getGeneric()
          Returns the generic.
 java.lang.String getIdentifier()
          Returns the identifier of this component.
 java.util.List<VhdlObjectProvider<Signal>> getPort()
          Returns the port.
 Scope getScope()
          Returns the scope of this declarative region.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier of this component.
 
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

Component

public Component(java.lang.String identifier)
Creates a component.

Parameters:
identifier - the component identifier

Component

public Component(Entity entity)
Creates a component based on an entity. The identifier, port and generic of the entity is used to initialize the component.

Parameters:
entity - the entity
Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface NamedEntity
Returns:
the identifier

setIdentifier

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

Parameters:
identifier - the identifier

getGeneric

public java.util.List<VhdlObjectProvider<Constant>> getGeneric()
Returns the generic.

Returns:
a list of constants

getPort

public java.util.List<VhdlObjectProvider<Signal>> getPort()
Returns the port.

Returns:
a list of signals

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