Machinations

Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
Machinations.FromFlash.graph.GraphElement Class Referenceabstract

ancestor of every node and connection, is a basic member of graphs, contains common things for all elements More...

Inheritance diagram for Machinations.FromFlash.graph.GraphElement:

## Public Member Functions

virtual void | Dispose ()
virtual void | UpdateDescription ()
virtual XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
virtual void | ReadXml (XmlElement element)
virtual void | FinishLoading (List< GraphElement > elements)
virtual void | AddInput (MachinationsConnection connection)
virtual void | AddOutput (MachinationsConnection connection)
virtual void | RemoveInput (MachinationsConnection connection)
virtual void | RemoveOutput (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 ()
abstract void | CopyShift ()
abstract Point | GetPosition ()
void | Selected ()
void | UnSelected ()

## Public Attributes

Action | DescriptionChanged

## Protected Member Functions

| GraphElement ()
void | DescriptionChange (int order, string text="")
virtual void | InhibitedChangeForReal ()
virtual void | OnPropertyChanged ([CallerMemberName] string propertyName=null)

## Protected Attributes

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

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]`

## Events

EventHandler | Changed
Action | OnSelect
Action | OnUnselect
PropertyChangedEventHandler | PropertyChanged

## Detailed Description

ancestor of every node and connection, is a basic member of graphs, contains common things for all elements

## Constructor & Destructor Documentation

## ◆ GraphElement()

Machinations.FromFlash.graph.GraphElement.GraphElement | ( |  | ) |

protected

## Member Function Documentation

## ◆ AddInput()

virtual void Machinations.FromFlash.graph.GraphElement.AddInput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented in Machinations.UserComponents.UcInstanceBase, and Machinations.UserComponents.InOutBase.

## ◆ AddOutput()

virtual void Machinations.FromFlash.graph.GraphElement.AddOutput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented in Machinations.UserComponents.UserComponent, and Machinations.UserComponents.InOutBase.

## ◆ Clone()

object Machinations.FromFlash.graph.GraphElement.Clone | ( |  | ) |

## ◆ CopyShift()

abstract void Machinations.FromFlash.graph.GraphElement.CopyShift | ( |  | ) |

pure virtual

Implemented in Machinations.FromFlash.graph.GraphConnection, Machinations.UserComponents.UcInstanceBase, and Machinations.FromFlash.graph.GraphNode.

## ◆ DescriptionChange()

void Machinations.FromFlash.graph.GraphElement.DescriptionChange | ( | int | order,
|  | string | text = `""`
| ) |  |

protected

## ◆ Dispose()

virtual void Machinations.FromFlash.graph.GraphElement.Dispose | ( |  | ) |

virtual

Reimplemented in Machinations.UserComponents.InOutBase, and Machinations.FromFlash.machinations.model.MachinationsConnection.

## ◆ FinishLoading()

virtual void Machinations.FromFlash.graph.GraphElement.FinishLoading | ( | List< GraphElement > | elements | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsNode.

## ◆ GenerateXml()

virtual XmlElement Machinations.FromFlash.graph.GraphElement.GenerateXml | ( | XmlDocument | document,
|  | XmlElement | element = `null`
| ) |  |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.StateConnection, Machinations.UserComponents.CardInstance, Machinations.UserComponents.UserComponent, Machinations.FromFlash.machinations.model.MachinationsConnection, Machinations.FromFlash.machinations.model.Pool, Machinations.UserComponents.UcInstanceBase, Machinations.FromFlash.machinations.model.MachinationsNode, Machinations.UserComponents.InOutBase, Machinations.FromFlash.graph.GraphConnection, Machinations.FromFlash.graph.CompatibilityNode, Machinations.FromFlash.machinations.model.Delay, Machinations.FromFlash.machinations.model.Gate, Machinations.UserComponents.OuterInOut, Machinations.FromFlash.machinations.model.ArtificialPlayer, Machinations.FromFlash.graph.GraphNode, and Machinations.FromFlash.machinations.model.Source.

## ◆ GetMMExp()

string Machinations.FromFlash.graph.GraphElement.GetMMExp | ( |  | ) |

## ◆ GetMMName()

virtual string Machinations.FromFlash.graph.GraphElement.GetMMName | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsNode.

## ◆ GetPosition()

abstract Point Machinations.FromFlash.graph.GraphElement.GetPosition | ( |  | ) |

pure virtual

Implemented in Machinations.FromFlash.graph.GraphConnection, Machinations.UserComponents.UcInstanceBase, and Machinations.FromFlash.graph.GraphNode.

## ◆ InhibitedChangeApply()

void Machinations.FromFlash.graph.GraphElement.InhibitedChangeApply | ( |  | ) |

## ◆ InhibitedChangeForReal()

virtual void Machinations.FromFlash.graph.GraphElement.InhibitedChangeForReal | ( |  | ) |

protected virtual

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsNode, Machinations.FromFlash.machinations.model.MergedResourceConnection, Machinations.FromFlash.machinations.model.MergedStateConnection, Machinations.FromFlash.machinations.model.MachinationsConnection, Machinations.FromFlash.machinations.model.Converter, and Machinations.FromFlash.machinations.model.Drain.

## ◆ MoveBy()

virtual void Machinations.FromFlash.graph.GraphElement.MoveBy | ( | double | x,
|  | double | y,
|  | double | z = `0`
| ) |  |

virtual

## ◆ MoveTo()

virtual void Machinations.FromFlash.graph.GraphElement.MoveTo | ( | double | x,
|  | double | y,
|  | double | z = `0`
| ) |  |

virtual

## ◆ OnChanged()

void Machinations.FromFlash.graph.GraphElement.OnChanged | ( | string | reason,
|  | string | message = `null`
| ) |  |

## ◆ OnPropertyChanged()

virtual void Machinations.FromFlash.graph.GraphElement.OnPropertyChanged | ( | [CallerMemberName] string | propertyName = `null` | ) |

protected virtual

## ◆ ReadXml()

virtual void Machinations.FromFlash.graph.GraphElement.ReadXml | ( | XmlElement | element | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.StateConnection, Machinations.UserComponents.CardInstance, Machinations.FromFlash.machinations.model.MachinationsConnection, Machinations.FromFlash.machinations.model.Pool, Machinations.UserComponents.UcInstanceBase, Machinations.FromFlash.machinations.model.MachinationsNode, Machinations.FromFlash.graph.GraphConnection, Machinations.UserComponents.InOutBase, Machinations.FromFlash.machinations.model.Delay, Machinations.FromFlash.machinations.model.Gate, Machinations.UserComponents.OuterInOut, Machinations.FromFlash.machinations.model.ArtificialPlayer, Machinations.FromFlash.graph.GraphNode, Machinations.UserComponents.CardTemplate, and Machinations.FromFlash.machinations.model.Source.

## ◆ RemoveInput()

virtual void Machinations.FromFlash.graph.GraphElement.RemoveInput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.MachinationsNode, and Machinations.UserComponents.InOutBase.

## ◆ RemoveOutput()

virtual void Machinations.FromFlash.graph.GraphElement.RemoveOutput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented in Machinations.UserComponents.UserComponent, and Machinations.UserComponents.InOutBase.

## ◆ Selected()

void Machinations.FromFlash.graph.GraphElement.Selected | ( |  | ) |

## ◆ ToMMString()

virtual string Machinations.FromFlash.graph.GraphElement.ToMMString | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.ResourceConnection, Machinations.FromFlash.machinations.model.StateConnection, Machinations.FromFlash.machinations.model.Converter, Machinations.FromFlash.machinations.model.Drain, and Machinations.FromFlash.machinations.model.Source.

## ◆ TurnPoolsApply()

void Machinations.FromFlash.graph.GraphElement.TurnPoolsApply | ( |  | ) |

## ◆ UnSelected()

void Machinations.FromFlash.graph.GraphElement.UnSelected | ( |  | ) |

## ◆ UpdateDescription()

virtual void Machinations.FromFlash.graph.GraphElement.UpdateDescription | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.MachinationsNode, and Machinations.FromFlash.machinations.model.StateConnection.

## Member Data Documentation

## ◆ DescriptionChanged

Action Machinations.FromFlash.graph.GraphElement.DescriptionChanged

## ◆ m_graph

Graph Machinations.FromFlash.graph.GraphElement.m_graph

protected

A graph, inside which this element is. During simulation, it should always be Machinations graph

## ◆ m_id

int Machinations.FromFlash.graph.GraphElement.m_id

protected

Identification when saved to XML format

## ◆ m_inhibited

bool Machinations.FromFlash.graph.GraphElement.m_inhibited

protected

## ◆ m_inhibitedNewState

bool Machinations.FromFlash.graph.GraphElement.m_inhibitedNewState

protected

## ◆ m_inputs

List<GraphConnection> Machinations.FromFlash.graph.GraphElement.m_inputs

protected

## ◆ m_outputs

List<GraphConnection> Machinations.FromFlash.graph.GraphElement.m_outputs

protected

## ◆ m_turnPools

List<Pool> Machinations.FromFlash.graph.GraphElement.m_turnPools

protected

## Property Documentation

## ◆ Description

string Machinations.FromFlash.graph.GraphElement.Description

get

## ◆ Graph

Graph Machinations.FromFlash.graph.GraphElement.Graph

get set

## ◆ Id

int Machinations.FromFlash.graph.GraphElement.Id

get set

## ◆ Inhibited

virtual bool Machinations.FromFlash.graph.GraphElement.Inhibited

get set

## ◆ InhibitedChanged

Action Machinations.FromFlash.graph.GraphElement.InhibitedChanged

get set

## ◆ Inputs

virtual IEnumerable<GraphConnection> Machinations.FromFlash.graph.GraphElement.Inputs

get

## ◆ Outputs

virtual IEnumerable<GraphConnection> Machinations.FromFlash.graph.GraphElement.Outputs

get

## ◆ TurnPools

List<Pool> Machinations.FromFlash.graph.GraphElement.TurnPools

get set

## Event Documentation

## ◆ Changed

EventHandler Machinations.FromFlash.graph.GraphElement.Changed

## ◆ OnSelect

Action Machinations.FromFlash.graph.GraphElement.OnSelect

## ◆ OnUnselect

Action Machinations.FromFlash.graph.GraphElement.OnUnselect

## ◆ PropertyChanged

PropertyChangedEventHandler Machinations.FromFlash.graph.GraphElement.PropertyChanged

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

- FromFlash/graph/GraphElement.cs