TemplateHelper

org.eso.ias.cdb.topology.TemplateHelper

TemplateHelper is a collection of helper methods to transformi DASUs, ASCEs and IASIOs defined by templates into concrete instances.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def checkTemplateConstraints(dasusToDep: Set[DasuToDeployDao]): Boolean

Ensure that

Ensure that

  • all the ASCEs of a DASU have the same template
  • all the inputs have the same template or are not templated
  • all the output have the same template templated

Templated inputs are a special case because their template can differ from that of the DASU.

Value parameters

dasusToDep

the templated DASUs to deploy in the supervisor

Attributes

Returns

true if all the DASU, ASCEs and IASIOs respect the constraints of the template

def getNormalDasusToDeploy(dasusToDeploy: Set[DasuToDeployDao]): Set[DasuToDeployDao]

Get the non-templated DASUs to deploy from the passed set

Get the non-templated DASUs to deploy from the passed set

Value parameters

dasusToDeploy

the set of DASUs to deploy

Attributes

Returns

The DASUs to deploy that have no template

def getTemplatedDasusToDeploy(dasusToDeploy: Set[DasuToDeployDao]): Set[DasuToDeployDao]

Get the templated DASUs to deploy from the passed set

Get the templated DASUs to deploy from the passed set

Value parameters

dasusToDeploy

the set of DASUs to deploy

Attributes

Returns

The DASUs to deploy that have a template

def normalizeAsceWithTemplatedInstanceInputs(asce: AsceDao): Unit

Normalize the passed ASCE by adding the templated instance inputs to the list of the standard inputs, after renaming their IDs.

Normalize the passed ASCE by adding the templated instance inputs to the list of the standard inputs, after renaming their IDs.

Note that these kind of inputs can be set also for non templated DASU

Value parameters

asce

The ASCE to normalize the templated input instances

Attributes

Returns

The ASCE normalized for templated inputs instances

def normalizeDasusToDeploy(dasusToDeploy: Set[DasuToDeployDao]): Set[DasuDao]

Normalize the passed DASUs to deploy.

Normalize the passed DASUs to deploy.

Value parameters

dasusToDeploy

The DASUs to deploy

Attributes

Returns

The DASUs with templates replaced by concrete instances

def normalizeIasio(iasio: IasioDao, instance: Int): IasioDao

Normalize the passed IasioDao to a IasioDao where the identifier has been replaced with the version generated from the instance of the template

Normalize the passed IasioDao to a IasioDao where the identifier has been replaced with the version generated from the instance of the template

Value parameters

iasio

The IasioDao to whose identifier needs to be converted

Attributes

Returns

the converted IasioDao if the parameter was templated, the same iasio otherwise

Concrete fields

val logger: Logger

The logger

The logger

Attributes