Class Person
A person who uses a software system.
[DataContract]
public sealed class Person : StaticStructureElement, IEquatable<Person>
- Inheritance
-
Person
- Implements
- Inherited Members
Properties
CanonicalName
Gets the canonical name for this person.
public override string CanonicalName { get; }
Property Value
Location
The location of this person.
[DataMember(Name = "location", EmitDefaultValue = true)]
public Location Location { get; set; }
Property Value
Parent
Persons do not have a parent element in the static structure hierarchy.
public override Element Parent { get; set; }
Property Value
Methods
Delivers(Person, string)
Person-to-person delivery relationships are not supported by this API.
public Relationship Delivers(Person destination, string description)
Parameters
Returns
- Relationship
This method never returns a value.
Exceptions
- InvalidOperationException
Always thrown because person delivery relationships are modelled via InteractsWith(Person, string).
Delivers(Person, string, string)
Person-to-person delivery relationships are not supported by this API.
public Relationship Delivers(Person destination, string description, string technology)
Parameters
destinationPersonThe destination person.
descriptionstringThe relationship description.
technologystringThe interaction technology.
Returns
- Relationship
This method never returns a value.
Exceptions
- InvalidOperationException
Always thrown because person delivery relationships are modelled via InteractsWith(Person, string, string).
Delivers(Person, string, string, InteractionStyle)
Person-to-person delivery relationships are not supported by this API.
public Relationship Delivers(Person destination, string description, string technology, InteractionStyle interactionStyle)
Parameters
destinationPersonThe destination person.
descriptionstringThe relationship description.
technologystringThe interaction technology.
interactionStyleInteractionStyleThe interaction style.
Returns
- Relationship
This method never returns a value.
Exceptions
- InvalidOperationException
Always thrown because person delivery relationships are modelled via InteractsWith(Person, string, string, InteractionStyle?).
Equals(Person)
Compares this person with another person by canonical identity.
public bool Equals(Person person)
Parameters
personPersonThe person to compare with.
Returns
GetRequiredTags()
Returns the tags that are always applied to people.
public override List<string> GetRequiredTags()
Returns
InteractsWith(Person, string)
Adds an interaction between this person and another.
public Relationship InteractsWith(Person destination, string description)
Parameters
destinationPersonthe Person being interacted with
descriptionstringa description of the interaction
Returns
- Relationship
the resulting Relationship
InteractsWith(Person, string, string)
Adds an interaction between this person and another.
public Relationship InteractsWith(Person destination, string description, string technology)
Parameters
destinationPersonthe Person being interacted with
descriptionstringa description of the interaction
technologystringthe technology of the interaction (e.g. Telephone)
Returns
- Relationship
the resulting Relationship
InteractsWith(Person, string, string, InteractionStyle?)
Adds an interaction between this person and another.
public Relationship InteractsWith(Person destination, string description, string technology, InteractionStyle? interactionStyle)
Parameters
destinationPersonthe Person being interacted with
descriptionstringa description of the interaction
technologystringthe technology of the interaction (e.g. Telephone)
interactionStyleInteractionStyle?the interaction style (e.g. Synchronous or Asynchronous)
Returns
- Relationship
the resulting Relationship
InteractsWith(Person, string, string, InteractionStyle?, string[])
Adds an interaction between this person and another.
public Relationship InteractsWith(Person destination, string description, string technology, InteractionStyle? interactionStyle, string[] tags)
Parameters
destinationPersonthe Person being interacted with
descriptionstringa description of the interaction
technologystringthe technology of the interaction (e.g. Telephone)
interactionStyleInteractionStyle?the interaction style (e.g. Synchronous or Asynchronous)
tagsstring[]an array of tags
Returns
- Relationship
the resulting Relationship