public class Specification extends java.lang.Object implements IAttributes
| Modifier and Type | Field and Description |
|---|---|
protected Application<?,?> |
application |
protected Architecture<?,?> |
architecture |
protected Attributes |
attributes |
protected Mappings<?,?> |
mappings |
protected Routings<?,?,?> |
routings |
| Constructor and Description |
|---|
Specification(Application<?,?> application,
Architecture<?,?> architecture,
Mappings<?,?> mappings)
Constructs the specification.
|
Specification(Application<?,?> application,
Architecture<?,?> architecture,
Mappings<?,?> mappings,
Routings<?,?,?> routings)
Constructs the specification.
|
| Modifier and Type | Method and Description |
|---|---|
protected static Routings<?,?,?> |
fill(Application<?,?> application,
Architecture<?,?> architecture) |
<A extends Application<Task,Dependency>> |
getApplication()
Returns the application.
|
<A extends Architecture<Resource,Link>> |
getArchitecture()
Returns the architecture.
|
<O> O |
getAttribute(java.lang.String identifier)
Returns the attribute
|
java.util.Set<java.lang.String> |
getAttributeNames()
Returns the attribute names.
|
Parameter |
getAttributeParameter(java.lang.String identifier)
Return the parameter definition or
null if the attribute is not
defined as parameter. |
Attributes |
getAttributes()
Returns the map of all pairs of attributes.
|
<M extends Mappings<Task,Resource>> |
getMappings()
Returns the mappings.
|
<R extends Routings<Task,Resource,Link>> |
getRoutings()
Returns the routings.
|
boolean |
isDefined(java.lang.String identifier)
Tests whether an attribute is defined.
|
void |
setAttribute(java.lang.String identifier,
java.lang.Object object)
Sets the attribute.
|
protected Architecture<?,?> architecture
protected Application<?,?> application
protected Mappings<?,?> mappings
protected Routings<?,?,?> routings
protected Attributes attributes
public Specification(Application<?,?> application, Architecture<?,?> architecture, Mappings<?,?> mappings)
application - the applicationarchitecture - the architecturemappings - the mappingspublic Specification(Application<?,?> application, Architecture<?,?> architecture, Mappings<?,?> mappings, Routings<?,?,?> routings)
application - the applicationarchitecture - the architecturemappings - the mappingsroutings - the routingsprotected static Routings<?,?,?> fill(Application<?,?> application, Architecture<?,?> architecture)
public <A extends Architecture<Resource,Link>> A getArchitecture()
A - the type of architecturepublic <A extends Application<Task,Dependency>> A getApplication()
A - the type of applicationpublic <M extends Mappings<Task,Resource>> M getMappings()
M - the type of mappingspublic <R extends Routings<Task,Resource,Link>> R getRoutings()
R - the type of routingspublic void setAttribute(java.lang.String identifier,
java.lang.Object object)
IAttributessetAttribute in interface IAttributesidentifier - the identifier of the attributeobject - the value of the attributepublic <O> O getAttribute(java.lang.String identifier)
IAttributesgetAttribute in interface IAttributesO - the type of the attributeidentifier - the identifier of the attributepublic Parameter getAttributeParameter(java.lang.String identifier)
IAttributesnull if the attribute is not
defined as parameter.getAttributeParameter in interface IAttributesidentifier - the identifier of the attributepublic Attributes getAttributes()
IAttributesgetAttributes in interface IAttributespublic java.util.Set<java.lang.String> getAttributeNames()
IAttributesgetAttributeNames in interface IAttributespublic boolean isDefined(java.lang.String identifier)
IAttributesisDefined in interface IAttributesidentifier - the identifier of the attributetrue if defined