Machinations

Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Machinations.UserComponents.UserComponent Class Reference
Inheritance diagram for Machinations.UserComponents.UserComponent:

## Public Member Functions

| UserComponent ()
| UserComponent (string fileName)
| UserComponent (XmlElement element)
void | SaveToComponentsFolder ()
| uklada sebe sama do samostatneho filu More...
UserComponentGraph | GetInternalGraph (int i, bool templateOnly)
override IUserComponentSchema | GetUcScheme ()
override bool | IsSimilar (IUserComponentInstance model)
virtual XmlElement | GenerateXmlTemplate (XmlDocument document)
void | ReadXmlTemplate (XmlElement element)
override XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
| uloží instanci UC. Obsah se ale bere z templatu More...
new IUserComponentSchema | Clone ()
override void | AppendToGraph (Graph graph)
IUserComponentInstance | GetNewUcInstance (IUserComponentInstance previousInstance=null)
IUserComponentInstance | GetInstance (int instanceNumber)
override void | UpdateOuters ()
IEnumerable< IUserComponentInstance > | GetInstances ()
void | GenerateNewVersion ()
override void | AddLoadedOuterInOut (OuterInOut inOut)
override void | AddOutput (MachinationsConnection connection)
override void | RemoveOutput (MachinationsConnection connection)
virtual InnerInOut | CreateInOut (Point position, bool? input=null, int? inOutNumber=null)
void | RemoveInOut (InnerInOut inOut)
void | DeleteXmlTemplate ()
bool | SameSchema (IUserComponentSchema otherSchema)
IEnumerable< IUserComponentSchema > | GetInnerComponents ()
Public Member Functions inherited from Machinations.UserComponents.UcInstanceBase
override void | AddInput (MachinationsConnection connection)
override Point | GetPosition ()
override void | CopyShift ()
override void | ReadXml (XmlElement element)
void | Zip ()
void | UnZip ()
void | ZipUnzipGraphElements ()
Public Member Functions inherited from Machinations.FromFlash.graph.GraphElement
virtual void | Dispose ()
virtual void | UpdateDescription ()
virtual void | FinishLoading (List< GraphElement > elements)
virtual void | RemoveInput (MachinationsConnection connection)
object | Clone ()
virtual void | MoveBy (double x, double y, double z=0)
virtual void | MoveTo (double x, double y, double z=0)
virtual string | ToMMString ()
virtual string | GetMMName ()
string | GetMMExp ()
void | OnChanged (string reason, string message=null)
void | InhibitedChangeApply ()
void | TurnPoolsApply ()
void | Selected ()
void | UnSelected ()
Public Member Functions inherited from Machinations.UserComponents.IUserComponentInstance
void | Dispose ()
Public Member Functions inherited from Machinations.UserComponents.IUserComponentSchema
void | UnZip ()
void | Zip ()

## Protected Member Functions

| UserComponent (List< InnerInOut > inAndOuts)
virtual void | AddInOutsAfterLoad ()
Protected Member Functions inherited from Machinations.UserComponents.UcInstanceBase
| UcInstanceBase ()
void | CreateMergedInOuts (IEnumerable< InnerInOut > innerInOuts)
void | ZipOrUnzip ()
Protected Member Functions inherited from Machinations.FromFlash.graph.GraphElement
| GraphElement ()
void | DescriptionChange (int order, string text="")
virtual void | InhibitedChangeForReal ()
virtual void | OnPropertyChanged ([CallerMemberName] string propertyName=null)

## Protected Attributes

readonly List< InnerInOut > | m_innerInOuts
Protected Attributes inherited from Machinations.UserComponents.UcInstanceBase
string | m_name
Point | m_position
int | m_radius
readonly List< OuterInOut > | m_outerInOuts
readonly List< IInOut > | m_inOuts
bool | m_zip
| pokud je true, je komponenta zabalena, takze jsou videt outer connections, tj spoje mezi ostatnimi castmi grafu a USInputy pokud je false, je komponenta rozbalena,takze je soucasti grafu More...
Protected Attributes inherited from Machinations.FromFlash.graph.GraphElement
int | m_id
Graph | m_graph
| A graph, inside which this element is. During simulation, it should always be Machinations graph More...
List< GraphConnection > | m_inputs
List< GraphConnection > | m_outputs
List< Pool > | m_turnPools
bool | m_inhibited
bool | m_inhibitedNewState

## Properties

int | UcId`[get, set]`
string | FileName`[get]`
string | NameDate`[get]`
DateTime | Created`[get, set]`
override UserComponentGraph | InternalGraph`[get]`
override IEnumerable< GraphElement > | PresentedElements`[get]`
override int | CurrentCard`[get, set]`
List< IInOut > | InAndOuts`[get]`
IEnumerable< InnerInOut > | InnerInOuts`[get]`
override IEnumerable< InnerInOut > | MyInnerInOuts`[get]`
override int | InstanceNumber`[get]`
override UserComponentType | Type`[get]`
override bool | Inhibited`[get, set]`
Properties inherited from Machinations.UserComponents.UcInstanceBase
abstract UserComponentGraph | InternalGraph`[get]`
string | Name`[get, set]`
Point | Position`[get, set]`
int | Radius`[get, set]`
Color | Color`[get, set]`
Action | ComponentChanged`[get, set]`
IEnumerable< OuterInOut > | OuterInOuts`[get]`
IEnumerable< MachinationsNode > | ClickableNodes`[get]`
bool | IsZipped`[get]`
abstract int | CurrentCard`[get, set]`
abstract IEnumerable< GraphElement > | PresentedElements`[get]`
abstract int | InstanceNumber`[get]`
abstract UserComponentType | Type`[get]`
abstract IEnumerable< InnerInOut > | MyInnerInOuts`[get]`
Properties inherited from Machinations.FromFlash.graph.GraphElement
virtual IEnumerable< GraphConnection > | Inputs`[get]`
List< Pool > | TurnPools`[get, set]`
int | Id`[get, set]`
string | Description`[get]`
virtual IEnumerable< GraphConnection > | Outputs`[get]`
Graph | Graph`[get, set]`
Action | InhibitedChanged`[get, set]`
virtual bool | Inhibited`[get, set]`
Properties inherited from Machinations.UserComponents.IUserComponentInstance
UserComponentGraph | InternalGraph`[get]`
List< GraphElement > | UnzippedElements`[get]`
Action | InhibitedChanged`[get, set]`
string | Name`[get, set]`
Point | Position`[get, set]`
int | Radius`[get, set]`
int | CurrentCard`[get, set]`
bool | Inhibited`[get, set]`
Color | Color`[get, set]`
Action | ComponentChanged`[get, set]`
IEnumerable< GraphElement > | PresentedElements`[get]`
IEnumerable< OuterInOut > | OuterInOuts`[get]`
int | InstanceNumber`[get]`
UserComponentType | Type`[get]`
Properties inherited from Machinations.UserComponents.IUserComponentSchema
IEnumerable< InnerInOut > | InnerInOuts`[get]`
Graph | Graph`[get, set]`
string | Name`[get, set]`
DateTime | Created`[get, set]`
int | UcId`[get, set]`
UserComponentType | Type`[get]`
bool | IsZipped`[get]`

## Additional Inherited Members

Public Attributes inherited from Machinations.UserComponents.UcInstanceBase
List< GraphElement > | UnzippedElements => m_unzippedElements ?? InternalGraph.Elements
Public Attributes inherited from Machinations.FromFlash.graph.GraphElement
Action | DescriptionChanged
Events inherited from Machinations.FromFlash.graph.GraphElement
EventHandler | Changed
Action | OnSelect
Action | OnUnselect
PropertyChangedEventHandler | PropertyChanged
Events inherited from Machinations.UserComponents.IUserComponentInstance
Action | OnSelect
Action | OnUnselect

## Constructor & Destructor Documentation

## ◆ UserComponent() [1/4]

Machinations.UserComponents.UserComponent.UserComponent | ( |  | ) |

## ◆ UserComponent() [2/4]

Machinations.UserComponents.UserComponent.UserComponent | ( | string | fileName | ) |

## ◆ UserComponent() [3/4]

Machinations.UserComponents.UserComponent.UserComponent | ( | XmlElement | element | ) |

## ◆ UserComponent() [4/4]

Machinations.UserComponents.UserComponent.UserComponent | ( | List< InnerInOut > | inAndOuts | ) |

protected

## Member Function Documentation

## ◆ AddInOutsAfterLoad()

virtual void Machinations.UserComponents.UserComponent.AddInOutsAfterLoad | ( |  | ) |

protected virtual

Reimplemented in Machinations.UserComponents.CardTemplate.

## ◆ AddLoadedOuterInOut()

override void Machinations.UserComponents.UserComponent.AddLoadedOuterInOut | ( | OuterInOut | inOut | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ AddOutput()

override void Machinations.UserComponents.UserComponent.AddOutput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ AppendToGraph()

override void Machinations.UserComponents.UserComponent.AppendToGraph | ( | Graph | graph | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ Clone()

new IUserComponentSchema Machinations.UserComponents.UserComponent.Clone | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ CreateInOut()

virtual InnerInOut Machinations.UserComponents.UserComponent.CreateInOut | ( | Point | position,
|  | bool? | input = `null`,
|  | int? | inOutNumber = `null`
| ) |  |

virtual

Implements Machinations.UserComponents.IUserComponentSchema.

Reimplemented in Machinations.UserComponents.CardTemplate.

## ◆ DeleteXmlTemplate()

void Machinations.UserComponents.UserComponent.DeleteXmlTemplate | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GenerateNewVersion()

void Machinations.UserComponents.UserComponent.GenerateNewVersion | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GenerateXml()

override XmlElement Machinations.UserComponents.UserComponent.GenerateXml | ( | XmlDocument | document,
|  | XmlElement | element = `null`
| ) |  |

virtual

uloží instanci UC. Obsah se ale bere z templatu

Reimplemented from Machinations.UserComponents.UcInstanceBase.

## ◆ GenerateXmlTemplate()

virtual XmlElement Machinations.UserComponents.UserComponent.GenerateXmlTemplate | ( | XmlDocument | document | ) |

virtual

Implements Machinations.UserComponents.IUserComponentSchema.

Reimplemented in Machinations.UserComponents.CardTemplate.

## ◆ GetInnerComponents()

IEnumerable<IUserComponentSchema> Machinations.UserComponents.UserComponent.GetInnerComponents | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GetInstance()

IUserComponentInstance Machinations.UserComponents.UserComponent.GetInstance | ( | int | instanceNumber | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GetInstances()

IEnumerable<IUserComponentInstance> Machinations.UserComponents.UserComponent.GetInstances | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GetInternalGraph()

UserComponentGraph Machinations.UserComponents.UserComponent.GetInternalGraph | ( | int | i,
|  | bool | templateOnly
| ) |  |

## ◆ GetNewUcInstance()

IUserComponentInstance Machinations.UserComponents.UserComponent.GetNewUcInstance | ( | IUserComponentInstance | previousInstance = `null` | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ GetUcScheme()

override IUserComponentSchema Machinations.UserComponents.UserComponent.GetUcScheme | ( |  | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ IsSimilar()

override bool Machinations.UserComponents.UserComponent.IsSimilar | ( | IUserComponentInstance | model | ) |

virtual

Implements Machinations.UserComponents.UcInstanceBase.

## ◆ ReadXmlTemplate()

void Machinations.UserComponents.UserComponent.ReadXmlTemplate | ( | XmlElement | element | ) |

## ◆ RemoveInOut()

void Machinations.UserComponents.UserComponent.RemoveInOut | ( | InnerInOut | inOut | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ RemoveOutput()

override void Machinations.UserComponents.UserComponent.RemoveOutput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ SameSchema()

bool Machinations.UserComponents.UserComponent.SameSchema | ( | IUserComponentSchema | otherSchema | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ SaveToComponentsFolder()

void Machinations.UserComponents.UserComponent.SaveToComponentsFolder | ( |  | ) |

uklada sebe sama do samostatneho filu

Implements Machinations.UserComponents.IUserComponentSchema.

## ◆ UpdateOuters()

override void Machinations.UserComponents.UserComponent.UpdateOuters | ( |  | ) |

Implements Machinations.UserComponents.IUserComponentSchema.

## Member Data Documentation

## ◆ m_innerInOuts

readonly List<InnerInOut> Machinations.UserComponents.UserComponent.m_innerInOuts

protected

## Property Documentation

## ◆ Created

DateTime Machinations.UserComponents.UserComponent.Created

get set

## ◆ CurrentCard

override int Machinations.UserComponents.UserComponent.CurrentCard

get set

## ◆ FileName

string Machinations.UserComponents.UserComponent.FileName

get

## ◆ InAndOuts

List<IInOut> Machinations.UserComponents.UserComponent.InAndOuts

get

## ◆ Inhibited

override bool Machinations.UserComponents.UserComponent.Inhibited

get set

## ◆ InnerInOuts

IEnumerable<InnerInOut> Machinations.UserComponents.UserComponent.InnerInOuts

get

## ◆ InstanceNumber

override int Machinations.UserComponents.UserComponent.InstanceNumber

get

## ◆ InternalGraph

override UserComponentGraph Machinations.UserComponents.UserComponent.InternalGraph

get

## ◆ MyInnerInOuts

override IEnumerable<InnerInOut> Machinations.UserComponents.UserComponent.MyInnerInOuts

get protected

## ◆ NameDate

string Machinations.UserComponents.UserComponent.NameDate

get

## ◆ PresentedElements

override IEnumerable<GraphElement> Machinations.UserComponents.UserComponent.PresentedElements

get

## ◆ Type

override UserComponentType Machinations.UserComponents.UserComponent.Type

get

## ◆ UcId

int Machinations.UserComponents.UserComponent.UcId

get set

The documentation for this class was generated from the following file:

- UserComponents/UserComponent.cs