Class StaticView
Serves as the base type for views that render a static structural slice of the model.
[DataContract]
public abstract class StaticView : View
- Inheritance
-
StaticView
- Derived
- Inherited Members
Properties
Animations
Contains the ordered animation steps configured for this view.
[DataMember(Name = "animations", EmitDefaultValue = false)]
public IList<Animation> Animations { get; }
Property Value
Methods
Add(Person)
Adds the given Person to this view.
public void Add(Person person)
Parameters
personPersonThe person to add.
Add(Relationship)
Adds a specific relationship to this view.
public RelationshipView Add(Relationship relationship)
Parameters
relationshipRelationshipthe Relationship to be added
Returns
- RelationshipView
a RelationshipView object representing the relationship added
Add(SoftwareSystem)
Adds the given SoftwareSystem to this view.
public virtual void Add(SoftwareSystem softwareSystem)
Parameters
softwareSystemSoftwareSystemThe software system to add.
AddAllElements()
Adds every element type permitted by the concrete static view.
public abstract void AddAllElements()
AddAllPeople()
Adds all people in the model to this view.
public void AddAllPeople()
AddAllSoftwareSystems()
Adds all software systems in the model to this view.
public void AddAllSoftwareSystems()
AddAnimation(params Element[])
Adds an animation step that reveals the supplied elements and the relationships to previously revealed elements.
public void AddAnimation(params Element[] elements)
Parameters
elementsElement[]The elements to reveal in the new animation step.
Exceptions
- ArgumentException
Thrown when no elements are supplied or none exist in the view.
AddDefaultElements()
Adds the default set of elements to this view.
public abstract void AddDefaultElements()
AddNearestNeighbours(Element)
Adds the permitted elements that are directly connected to the supplied element.
public abstract void AddNearestNeighbours(Element element)
Parameters
elementElementThe element whose neighbourhood should be included.
AddNearestNeighbours(Element, Type)
protected void AddNearestNeighbours(Element element, Type typeOfElement)
Parameters
Remove(Person)
Removes the given Person from this view.
public void Remove(Person person)
Parameters
personPersonThe person to remove.
Remove(SoftwareSystem)
Removes the given SoftwareSystem from this view.
public void Remove(SoftwareSystem softwareSystem)
Parameters
softwareSystemSoftwareSystemThe software system to remove.