Package org.btrplace.model.view
Interface ModelView
- All Known Implementing Classes:
NamingService
,Network
,ShareableResource
public interface ModelView extends Copyable<ModelView>
A view provides some domain-specific information about the elements of a model.
A view must have a unique identifier
- Author:
- Fabien Hermenier
-
Method Summary
Modifier and Type Method Description String
getIdentifier()
Get the view identifier.boolean
substituteVM(VM curId, VM nextId)
Notify the view a VM that already exist will be substituted by another VM during the reconfiguration process.
-
Method Details
-
getIdentifier
String getIdentifier()Get the view identifier.- Returns:
- a non-empty String
-
substituteVM
Notify the view a VM that already exist will be substituted by another VM during the reconfiguration process.- Parameters:
curId
- the current VM identifiernextId
- the new VM identifier- Returns:
true
iff the operation succeeded
-