Base trait for all hardware node builder
the name of the transporter is implicitly derived from the name of the variable used during instantiation.
Usually an hardware can be constructed without arguments, where T
can be Initiator, SimpleTransporter, Virtualizer, Target
val myHardware = T()
It is also possible to give a specific name, for instance when creating the component in a loop then the following
constructor can bee used
val hardwareSeq = for { i <- O to N } yield T(s"myHardware$i")
val myLoadService = Load()
val myOtherLoadService = Load()
val myStoreService = Store()
val myHardware = T(Set(myLoadService,myOtherLoadService,myStoreService)))
It is also possible to provide the name and the services for instance
val hardwareSeq = for { i <- O to N } yield T(s"myHardware$i", Set(Load(s"myLoad$i"), Store(s"myStore$i"))
A physical component can be defined only with the basic services it provides
The name will be retrieved by using the implicit declaration context
(the name of the value enclosing the object)
A physical component can be defined only with the basic services it provides
The name will be retrieved by using the implicit declaration context
(the name of the value enclosing the object)
Attributes
basics
the set of basic services provided, if empty a default store and load services are added
implicitName
implicitly retrieved name from the declaration context
owner
implicitly retrieved name of the platform
p
implicitly retrieved relation linking components to their provided services
A physical component can be defined by its name and the basic services it provides
A transporter is only defined by its name, so if the transporter already exists it will
simply add the services provided by basics
A physical component can be defined by its name and the basic services it provides
A transporter is only defined by its name, so if the transporter already exists it will
simply add the services provided by basics
Attributes
basics
the set of basic services provided, if empty a default store and load services are added
name
the physical component name
owner
implicitly retrieved name of the platform
p
implicitly retrieved relation linking components to their provided services