|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectusc.cse.desi.rasdsmodel.AbstractDESIModel
usc.cse.desi.rasdsmodel.AbstractNodeModel
usc.cse.desi.rasdsmodel.ComponentDataModel
This class represents a software component
| Field Summary | |
protected HostDataModel |
host
|
| Fields inherited from class usc.cse.desi.rasdsmodel.AbstractNodeModel |
children, connectedList, connectionsTo, desiModel, nodeRef |
| Fields inherited from class usc.cse.desi.rasdsmodel.AbstractDESIModel |
associatedObject |
| Constructor Summary | |
ComponentDataModel(edu.uci.ics.xarchutils.ObjRef node,
DeSiDataModel model)
|
|
| Method Summary | |
void |
addComponent(ComponentDataModel component)
|
void |
addConnection(LogicalLinkDataModel link)
|
void |
addForbiddenCoLocationConstraint(ComponentDataModel comp)
Add a component with which this component must be co-located |
void |
addForbiddenLocationConstraint(HostDataModel host)
Add a host on which this component must not be deployed |
void |
addRequiredCoLocationConstraint(ComponentDataModel comp)
Add a component with which this component must be co-located |
java.util.List |
getForbiddenCoLocationComponents()
Return a list of components with which this component must not be co-located, or rather which must not be deployed on the same host as this component Returns null if there are no such constraints. |
java.util.List |
getForbiddenLocationHosts()
Return a list of hosts on which this component cannot be deployed. |
float |
getMySize()
|
java.util.List |
getRequiredCoLocationComponents()
Return a list of components with which this component must be co-located, or rather which must be deployed on the same host as this component Returns null if there are no such constraints. |
HostDataModel |
getRequiredLocationHost()
Return a host on which this component must be deployed. |
void |
printComponentDataModel(java.lang.String indent)
Prints a ComponentDataModel to standard out |
void |
removeComponent(ComponentDataModel component)
|
void |
removeConnection(LogicalLinkDataModel link)
|
void |
removeForbiddenCoLocationConstraint(ComponentDataModel comp)
Remove a required co-location constraint on this component |
void |
removeForbiddenLocationConstraint(HostDataModel host)
Remove a forbidden location constraint on this component |
void |
removeRequiredCoLocationConstraint(ComponentDataModel comp)
Remove a required co-location constraint on this component |
void |
removeRequiredLocationConstraint()
Remove the required location constraint on this component |
void |
setMySize(float size)
|
void |
setRequiredLocationConstraint(HostDataModel host)
Set a host on which this component must be deployed |
| Methods inherited from class usc.cse.desi.rasdsmodel.AbstractNodeModel |
getChildren, getConnectedList, getConnections, getId, getMyNodeID, getMyNodeName, reinitialize, setId, setMyNodeID, setMyNodeName |
| Methods inherited from class usc.cse.desi.rasdsmodel.AbstractDESIModel |
addPropertyChangeListener, getMyAssociatedObject, propertyChange, removePropertyChangeListener, setMyAssociatedObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected HostDataModel host
| Constructor Detail |
public ComponentDataModel(edu.uci.ics.xarchutils.ObjRef node,
DeSiDataModel model)
| Method Detail |
public void addConnection(LogicalLinkDataModel link)
public void removeConnection(LogicalLinkDataModel link)
public void addComponent(ComponentDataModel component)
public void removeComponent(ComponentDataModel component)
public void setMySize(float size)
public float getMySize()
throws NoSuchAttributeException,
java.lang.NumberFormatException
NoSuchAttributeException
java.lang.NumberFormatExceptionpublic HostDataModel getRequiredLocationHost()
public void setRequiredLocationConstraint(HostDataModel host)
public void removeRequiredLocationConstraint()
public java.util.List getForbiddenLocationHosts()
public void addForbiddenLocationConstraint(HostDataModel host)
public void removeForbiddenLocationConstraint(HostDataModel host)
public java.util.List getRequiredCoLocationComponents()
public void addRequiredCoLocationConstraint(ComponentDataModel comp)
public void removeRequiredCoLocationConstraint(ComponentDataModel comp)
public java.util.List getForbiddenCoLocationComponents()
public void addForbiddenCoLocationConstraint(ComponentDataModel comp)
public void removeForbiddenCoLocationConstraint(ComponentDataModel comp)
public void printComponentDataModel(java.lang.String indent)
throws java.lang.Exception
indent - number of spaces to indent output
java.lang.Exception
| |||||