Machinations

Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Machinations.FromFlash.machinations.model.MachinationsNode Class Reference

contains all common things for nodes in machinations frameworks More...

Inheritance diagram for Machinations.FromFlash.machinations.model.MachinationsNode:

## Public Member Functions

override void | UpdateDescription ()
override XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
override void | ReadXml (XmlElement element)
virtual void | CheckInhibition ()
virtual void | Prepare (bool doEvents)
virtual void | Stop ()
virtual void | AutoFire ()
virtual void | Update (double time)
void | Click ()
virtual void | Fire ()
void | SetFiring ()
virtual void | Satisfy ()
virtual void | ReceiveResource (Color color, ResourceConnection flow)
void | Pull ()
bool | CheckInputs ()
void | UndoPull ()
override void | RemoveInput (MachinationsConnection connection)
override string | GetMMName ()
string | GetMMWhen ()
string | GetMMAct ()
string | GetMMHow ()
void | AddSimlink (SimlinkModel simlinkModel)
void | RemoveSimlink (SimlinkModel simlinkModel)
override void | FinishLoading (List< GraphElement > elements)
Public Member Functions inherited from Machinations.FromFlash.graph.GraphNode
| GraphNode ()
override void | CopyShift ()
override Point | GetPosition ()
Public Member Functions inherited from Machinations.FromFlash.graph.GraphElement
virtual void | Dispose ()
virtual void | AddInput (MachinationsConnection connection)
virtual void | AddOutput (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 ()
string | GetMMExp ()
void | OnChanged (string reason, string message=null)
void | InhibitedChangeApply ()
void | TurnPoolsApply ()
void | Selected ()
void | UnSelected ()

## Public Attributes

double | Thickness
Color | Color
double | Size
int | Actions
int | ResourceInputCount
int | ResourceOutputCount
int | StateOutputCount
int | StateInputCount
bool | AiControled
double | Firing
bool | FireFlag
List< SimlinkModel > | m_simlinks
override NodeClass | NodeClass => NodeClass.None
| enum for every node type, every different type need to have one More...
Public Attributes inherited from Machinations.FromFlash.graph.GraphNode
Point | m_position
virtual NodeClass | NodeClass => NodeClass.None
Public Attributes inherited from Machinations.FromFlash.graph.GraphElement
Action | DescriptionChanged

## Protected Member Functions

| MachinationsNode ()
override void | InhibitedChangeForReal ()
void | LogSelf ()
Protected Member Functions inherited from Machinations.FromFlash.graph.GraphElement
| GraphElement ()
void | DescriptionChange (int order, string text="")
virtual void | OnPropertyChanged ([CallerMemberName] string propertyName=null)

## Protected Attributes

bool | m_doEvents
string | m_caption
ActivationMode | m_activationMode
PullMode | m_pullMode
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

string | Caption`[get, set]`
ActivationMode | ActivationMode`[get, set]`
PullMode | PullMode`[get, set]`
List< SimlinkModel > | Simlinks`[get]`
bool | DoEvents`[get, set]`
Properties inherited from Machinations.FromFlash.graph.GraphNode
Point | Position`[get, set]`
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]`

## Additional Inherited Members

Events inherited from Machinations.FromFlash.graph.GraphElement
EventHandler | Changed
Action | OnSelect
Action | OnUnselect
PropertyChangedEventHandler | PropertyChanged

## Detailed Description

contains all common things for nodes in machinations frameworks

## Constructor & Destructor Documentation

## ◆ MachinationsNode()

Machinations.FromFlash.machinations.model.MachinationsNode.MachinationsNode | ( |  | ) |

protected

## Member Function Documentation

## ◆ AddSimlink()

void Machinations.FromFlash.machinations.model.MachinationsNode.AddSimlink | ( | SimlinkModel | simlinkModel | ) |

## ◆ AutoFire()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.AutoFire | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.ArtificialPlayer, and Machinations.FromFlash.machinations.model.Delay.

## ◆ CheckInhibition()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.CheckInhibition | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Source, Machinations.FromFlash.machinations.model.Converter, and Machinations.FromFlash.machinations.model.Drain.

## ◆ CheckInputs()

bool Machinations.FromFlash.machinations.model.MachinationsNode.CheckInputs | ( |  | ) |

## ◆ Click()

void Machinations.FromFlash.machinations.model.MachinationsNode.Click | ( |  | ) |

## ◆ FinishLoading()

override void Machinations.FromFlash.machinations.model.MachinationsNode.FinishLoading | ( | List< GraphElement > | elements | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ Fire()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.Fire | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.ArtificialPlayer, Machinations.FromFlash.machinations.model.Delay, Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.EndCondition, Machinations.FromFlash.machinations.model.Source, Machinations.FromFlash.machinations.model.Trader, Machinations.FromFlash.machinations.model.Converter, and Machinations.FromFlash.machinations.model.Drain.

## ◆ GenerateXml()

override XmlElement Machinations.FromFlash.machinations.model.MachinationsNode.GenerateXml | ( | XmlDocument | document,
|  | XmlElement | element = `null`
| ) |  |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphNode.

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.Pool, and Machinations.FromFlash.machinations.model.Source.

## ◆ GetMMAct()

string Machinations.FromFlash.machinations.model.MachinationsNode.GetMMAct | ( |  | ) |

## ◆ GetMMHow()

string Machinations.FromFlash.machinations.model.MachinationsNode.GetMMHow | ( |  | ) |

## ◆ GetMMName()

override string Machinations.FromFlash.machinations.model.MachinationsNode.GetMMName | ( |  | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ GetMMWhen()

string Machinations.FromFlash.machinations.model.MachinationsNode.GetMMWhen | ( |  | ) |

## ◆ InhibitedChangeForReal()

override void Machinations.FromFlash.machinations.model.MachinationsNode.InhibitedChangeForReal | ( |  | ) |

protected virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ LogSelf()

void Machinations.FromFlash.machinations.model.MachinationsNode.LogSelf | ( |  | ) |

protected

## ◆ Prepare()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.Prepare | ( | bool | doEvents | ) |

virtual

Implements Machinations.FromFlash.machinations.model.IPreparable.

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.ArtificialPlayer, Machinations.FromFlash.machinations.model.Delay, Machinations.FromFlash.machinations.model.Trader, and Machinations.FromFlash.machinations.model.EndCondition.

## ◆ Pull()

void Machinations.FromFlash.machinations.model.MachinationsNode.Pull | ( |  | ) |

## ◆ ReadXml()

override void Machinations.FromFlash.machinations.model.MachinationsNode.ReadXml | ( | XmlElement | element | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphNode.

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.Pool, and Machinations.FromFlash.machinations.model.Source.

## ◆ ReceiveResource()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.ReceiveResource | ( | Color | color,
|  | ResourceConnection | flow
| ) |  |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.Delay, and Machinations.FromFlash.machinations.model.Trader.

## ◆ RemoveInput()

override void Machinations.FromFlash.machinations.model.MachinationsNode.RemoveInput | ( | MachinationsConnection | connection | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ RemoveSimlink()

void Machinations.FromFlash.machinations.model.MachinationsNode.RemoveSimlink | ( | SimlinkModel | simlinkModel | ) |

## ◆ Satisfy()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.Satisfy | ( |  | ) |

virtual

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

## ◆ SetFiring()

void Machinations.FromFlash.machinations.model.MachinationsNode.SetFiring | ( |  | ) |

## ◆ Stop()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.Stop | ( |  | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Register, Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.ArtificialPlayer, and Machinations.FromFlash.machinations.model.Delay.

## ◆ UndoPull()

void Machinations.FromFlash.machinations.model.MachinationsNode.UndoPull | ( |  | ) |

## ◆ Update()

virtual void Machinations.FromFlash.machinations.model.MachinationsNode.Update | ( | double | time | ) |

virtual

Reimplemented in Machinations.FromFlash.machinations.model.Pool, Machinations.FromFlash.machinations.model.Gate, Machinations.FromFlash.machinations.model.Delay, Machinations.FromFlash.machinations.model.ArtificialPlayer, and Machinations.FromFlash.machinations.model.EndCondition.

## ◆ UpdateDescription()

override void Machinations.FromFlash.machinations.model.MachinationsNode.UpdateDescription | ( |  | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

Reimplemented in Machinations.FromFlash.machinations.model.Pool.

## Member Data Documentation

## ◆ Actions

int Machinations.FromFlash.machinations.model.MachinationsNode.Actions

## ◆ AiControled

bool Machinations.FromFlash.machinations.model.MachinationsNode.AiControled

## ◆ Color

Color Machinations.FromFlash.machinations.model.MachinationsNode.Color

## ◆ FireFlag

bool Machinations.FromFlash.machinations.model.MachinationsNode.FireFlag

## ◆ Firing

double Machinations.FromFlash.machinations.model.MachinationsNode.Firing

## ◆ m_activationMode

ActivationMode Machinations.FromFlash.machinations.model.MachinationsNode.m_activationMode

protected

## ◆ m_caption

string Machinations.FromFlash.machinations.model.MachinationsNode.m_caption

protected

## ◆ m_doEvents

bool Machinations.FromFlash.machinations.model.MachinationsNode.m_doEvents

protected

## ◆ m_pullMode

PullMode Machinations.FromFlash.machinations.model.MachinationsNode.m_pullMode

protected

## ◆ m_simlinks

List<SimlinkModel> Machinations.FromFlash.machinations.model.MachinationsNode.m_simlinks

## ◆ NodeClass

override NodeClass Machinations.FromFlash.machinations.model.MachinationsNode.NodeClass => NodeClass.None

enum for every node type, every different type need to have one

## ◆ ResourceInputCount

int Machinations.FromFlash.machinations.model.MachinationsNode.ResourceInputCount

## ◆ ResourceOutputCount

int Machinations.FromFlash.machinations.model.MachinationsNode.ResourceOutputCount

## ◆ Size

double Machinations.FromFlash.machinations.model.MachinationsNode.Size

## ◆ StateInputCount

int Machinations.FromFlash.machinations.model.MachinationsNode.StateInputCount

## ◆ StateOutputCount

int Machinations.FromFlash.machinations.model.MachinationsNode.StateOutputCount

## ◆ Thickness

double Machinations.FromFlash.machinations.model.MachinationsNode.Thickness

## Property Documentation

## ◆ ActivationMode

ActivationMode Machinations.FromFlash.machinations.model.MachinationsNode.ActivationMode

get set

## ◆ Caption

string Machinations.FromFlash.machinations.model.MachinationsNode.Caption

get set

## ◆ DoEvents

bool Machinations.FromFlash.machinations.model.MachinationsNode.DoEvents

get set

## ◆ PullMode

PullMode Machinations.FromFlash.machinations.model.MachinationsNode.PullMode

get set

## ◆ Simlinks

List<SimlinkModel> Machinations.FromFlash.machinations.model.MachinationsNode.Simlinks

get

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

- FromFlash/machinations/model/MachinationsNode.cs