Machinations

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

connection class for resource flow More...

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

## Public Member Functions

| ResourceConnection ()
void | Produce (Color sourceColor, Color sourceResourceColor)
override void | Prepare (bool doEvents)
override void | Stop ()
override void | Update (double time)
bool | Pull (int discount=0)
bool | CanPull (int discount=0)
void | CheckInhibition (bool communicate=true)
void | Fire ()
void | UndoPull (bool undoAllOfEndNode=true)
override string | ToMMString ()
Public Member Functions inherited from Machinations.FromFlash.machinations.model.MachinationsConnection
void | ConnectToElement (GraphElement element, bool connectingStart)
void | DisconnectElement (bool connectingStart)
override void | Dispose ()
override XmlElement | GenerateXml (XmlDocument document, XmlElement element=null)
override void | ReadXml (XmlElement element)
Public Member Functions inherited from Machinations.FromFlash.graph.GraphConnection
Point | GetMiddlePoint ()
void | EndConnectedInvoke (IObjectView< GraphElement > elementView)
void | StartConnectedInvoke (IObjectView< GraphElement > elementView)
override void | CopyShift ()
override Point | GetPosition ()
void | ForceChangeInhibition (bool inhibited)
Public Member Functions inherited from Machinations.FromFlash.graph.GraphElement
virtual void | UpdateDescription ()
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 | GetMMName ()
string | GetMMExp ()
void | OnChanged (string reason, string message=null)
void | InhibitedChangeApply ()
void | TurnPoolsApply ()
void | Selected ()
void | UnSelected ()

## Public Attributes

int | JustPulled
double | Speed
int | Delivered
bool | Instantaneous
override ConnectionClass | ConnectionClass => ConnectionClass.ResourceConnection
Public Attributes inherited from Machinations.FromFlash.machinations.model.MachinationsConnection
Color | Color
Label | Label
bool | DoEvents
double | Firing
double | Blocked
Action | VisualChanged
Public Attributes inherited from Machinations.FromFlash.graph.GraphConnection
virtual ConnectionClass | ConnectionClass => ConnectionClass.None
Public Attributes inherited from Machinations.FromFlash.graph.GraphElement
Action | DescriptionChanged

## Properties

List< Resource > | Resources`[get, set]`
List< int > | RequestQueue`[get, set]`
Properties inherited from Machinations.FromFlash.machinations.model.MachinationsConnection
int | Thickness`[get, set]`
Properties inherited from Machinations.FromFlash.graph.GraphConnection
GraphElement | Start`[get, set]`
GraphElement | End`[get, set]`
PointCollection | Points`[get]`
int | StartId`[get, set]`
int | EndId`[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

Protected Member Functions inherited from Machinations.FromFlash.machinations.model.MachinationsConnection
| MachinationsConnection ()
override void | InhibitedChangeForReal ()
Protected Member Functions inherited from Machinations.FromFlash.graph.GraphConnection
| GraphConnection ()
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 inherited from Machinations.FromFlash.machinations.model.MachinationsConnection
bool | m_communicateInhibition = true
Protected Attributes inherited from Machinations.FromFlash.graph.GraphConnection
GraphElement | m_start
GraphElement | m_end
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
Events inherited from Machinations.FromFlash.graph.GraphConnection
Action< IObjectView< GraphElement > > | EndConnected
Action< IObjectView< GraphElement > > | StartConnected
Events inherited from Machinations.FromFlash.graph.GraphElement
EventHandler | Changed
Action | OnSelect
Action | OnUnselect
PropertyChangedEventHandler | PropertyChanged

## Detailed Description

connection class for resource flow

## Constructor & Destructor Documentation

## ◆ ResourceConnection()

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

## Member Function Documentation

## ◆ CanPull()

bool Machinations.FromFlash.machinations.model.ResourceConnection.CanPull | ( | int | discount = `0` | ) |

## ◆ CheckInhibition()

void Machinations.FromFlash.machinations.model.ResourceConnection.CheckInhibition | ( | bool | communicate = `true` | ) |

## ◆ Fire()

void Machinations.FromFlash.machinations.model.ResourceConnection.Fire | ( |  | ) |

## ◆ Prepare()

override void Machinations.FromFlash.machinations.model.ResourceConnection.Prepare | ( | bool | doEvents | ) |

virtual

Reimplemented from Machinations.FromFlash.machinations.model.MachinationsConnection.

## ◆ Produce()

void Machinations.FromFlash.machinations.model.ResourceConnection.Produce | ( | Color | sourceColor,
|  | Color | sourceResourceColor
| ) |  |

## ◆ Pull()

bool Machinations.FromFlash.machinations.model.ResourceConnection.Pull | ( | int | discount = `0` | ) |

## ◆ Stop()

override void Machinations.FromFlash.machinations.model.ResourceConnection.Stop | ( |  | ) |

virtual

Reimplemented from Machinations.FromFlash.machinations.model.MachinationsConnection.

## ◆ ToMMString()

override string Machinations.FromFlash.machinations.model.ResourceConnection.ToMMString | ( |  | ) |

virtual

Reimplemented from Machinations.FromFlash.graph.GraphElement.

## ◆ UndoPull()

void Machinations.FromFlash.machinations.model.ResourceConnection.UndoPull | ( | bool | undoAllOfEndNode = `true` | ) |

## ◆ Update()

override void Machinations.FromFlash.machinations.model.ResourceConnection.Update | ( | double | time | ) |

virtual

Reimplemented from Machinations.FromFlash.machinations.model.MachinationsConnection.

## Member Data Documentation

## ◆ ConnectionClass

override ConnectionClass Machinations.FromFlash.machinations.model.ResourceConnection.ConnectionClass => ConnectionClass.ResourceConnection

## ◆ Delivered

int Machinations.FromFlash.machinations.model.ResourceConnection.Delivered

## ◆ Instantaneous

bool Machinations.FromFlash.machinations.model.ResourceConnection.Instantaneous

## ◆ JustPulled

int Machinations.FromFlash.machinations.model.ResourceConnection.JustPulled

## ◆ Speed

double Machinations.FromFlash.machinations.model.ResourceConnection.Speed

## Property Documentation

## ◆ RequestQueue

List<int> Machinations.FromFlash.machinations.model.ResourceConnection.RequestQueue

get set

## ◆ Resources

List<Resource> Machinations.FromFlash.machinations.model.ResourceConnection.Resources

get set

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

- FromFlash/machinations/model/ResourceConnection.cs