edu.ksu.cis.cadena.core.specification.scenario
Interface Instance

All Superinterfaces:
CalmObject, DirectPropertyContainer, PortPropertyContainer
All Known Subinterfaces:
ComponentInstance, ScenarioInstance

public interface Instance
extends DirectPropertyContainer, CalmObject, PortPropertyContainer

A representation of the model object 'Instance'.

The following features are supported:

See Also:
ScenarioPackage.getInstance()

Method Summary
 java.util.Collection<Connector> getConnections(Port port)
          Finds all of the connections to the specified port in containing Scenario.
 java.lang.String getName()
          Returns the value of the 'Name' attribute.
 int getNumAllConnections(Port port)
          Counts all of the connections to a specified port (includes nested ports within a scenario instance)
 java.util.Collection<Port> getPorts()
          Returns a collection of all the ports that this instance provides.
 void setName(java.lang.String value)
          Sets the value of the 'Name' attribute.
 
Methods inherited from interface edu.ksu.cis.cadena.core.specification.property.DirectPropertyContainer
getAllPropertyDeclarations, getProperties, getPropertyValue, isPropertyLocal, removeProperty
 
Methods inherited from interface edu.ksu.cis.cadena.core.specification.base.CalmObject
addBackReference, getBackReferences, getDeleted, getTrashCan, getUuid, removeBackReference
 
Methods inherited from interface edu.ksu.cis.cadena.core.specification.property.PortPropertyContainer
getAllPorts, getAllPropertyDeclarations, getPortProperties, getPortProperties, getPortProperty, isPortPropertyLocal, removePortProperty, setPortProperty
 

Method Detail

getName

java.lang.String getName()
Returns the value of the 'Name' attribute.

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), ScenarioPackage.getInstance_Name()

setName

void setName(java.lang.String value)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

getConnections

java.util.Collection<Connector> getConnections(Port port)
Finds all of the connections to the specified port in containing Scenario.

Parameters:
port - A port belonging to this instance
Returns:
All of the found connections

getNumAllConnections

int getNumAllConnections(Port port)
Counts all of the connections to a specified port (includes nested ports within a scenario instance)

Parameters:
port - A port belonging to this instance
Returns:
The number of connections to the port

getPorts

java.util.Collection<Port> getPorts()
Returns a collection of all the ports that this instance provides.

Returns:
The instance's ports