Class Motor
Inheritance
System.Object
Motor
Implements
System.IComparable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Experior.Core.dll
Syntax
[TypeConverter(typeof(ObjectConverter))]
public class Motor : IMotor, IComparable
Fields
globalMotorList
Declaration
protected static readonly IMotorCollection globalMotorList
Field Value
Properties
Arrows
Declaration
[Browsable(false)]
public IReadOnlyList<IArrow> Arrows { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<IArrow> |
|
CurrentSpeed
Declaration
public virtual float CurrentSpeed { get; protected set; }
Property Value
Type |
Description |
System.Single |
|
Direction
Declaration
[Browsable(false)]
public virtual MotorDirection Direction { get; }
Property Value
Enabled
Declaration
public virtual bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Items
Declaration
public static IMotorCollection Items { get; }
Property Value
Locked
Declaration
[Browsable(false)]
public virtual bool Locked { get; }
Property Value
Type |
Description |
System.Boolean |
|
Name
Declaration
[Required(ErrorMessage = "Name is required")]
public virtual string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Running
Declaration
[Browsable(false)]
public virtual bool Running { get; }
Property Value
Type |
Description |
System.Boolean |
|
Selected
Declaration
[Browsable(false)]
public virtual bool Selected { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Show
Declaration
public static bool Show { set; }
Property Value
Type |
Description |
System.Boolean |
|
Speed
Declaration
[Browsable(false)]
public virtual float Speed { get; set; }
Property Value
Type |
Description |
System.Single |
|
Visible
Declaration
[Browsable(false)]
public virtual bool Visible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Add(IArrow)
Declaration
public virtual void Add(IArrow arrow)
Parameters
Type |
Name |
Description |
IArrow |
arrow |
|
Backward()
Declaration
public virtual void Backward()
CompareTo(Object)
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Create(ElectricInfo)
Declaration
public static Electric Create(ElectricInfo minfo)
Parameters
Returns
Create(Type)
Declaration
public static Electric Create(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Delete(IElectricMotor)
Declaration
public static void Delete(IElectricMotor motor)
Parameters
Delete(String)
Declaration
public static void Delete(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Dispose()
Declaration
public virtual void Dispose()
DoubleClick()
Declaration
public virtual void DoubleClick()
EventStart(Motor)
Declaration
protected void EventStart(Motor motor)
Parameters
Type |
Name |
Description |
Motor |
motor |
|
EventStop(Motor)
Declaration
protected void EventStop(Motor motor)
Parameters
Type |
Name |
Description |
Motor |
motor |
|
Forward()
Declaration
public virtual void Forward()
Get(String)
Declaration
public static IElectricMotor Get(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Get(UInt64)
Declaration
public static IElectricMotor Get(ulong entityid)
Parameters
Type |
Name |
Description |
System.UInt64 |
entityid |
|
Returns
GetMotorNames(Type)
Declaration
public static string[] GetMotorNames(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.String[] |
|
GetMotors(Type)
Declaration
public static IReadOnlyCollection<IElectricMotor> GetMotors(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<IElectricMotor> |
|
GetValidName(String)
Declaration
public static string GetValidName(string prefix)
Parameters
Type |
Name |
Description |
System.String |
prefix |
|
Returns
Type |
Description |
System.String |
|
IncrementName(String)
Declaration
public static string IncrementName(string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|
InvokeDirectionChanged()
Declaration
protected void InvokeDirectionChanged()
InvokeSpeedChanged()
Declaration
protected void InvokeSpeedChanged()
InvokeStarted()
Declaration
protected virtual void InvokeStarted()
InvokeStopped()
Declaration
protected virtual void InvokeStopped()
NameUsed(String)
Declaration
public static bool NameUsed(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Remove(IArrow)
Declaration
public virtual void Remove(IArrow arrow)
Parameters
Type |
Name |
Description |
IArrow |
arrow |
|
RemoveArrows()
Declaration
public void RemoveArrows()
Reset()
Declaration
public virtual void Reset()
SetBackward()
Declaration
protected void SetBackward()
SetForward()
Declaration
protected void SetForward()
Start()
Declaration
public virtual void Start()
Stop()
Declaration
public virtual void Stop()
SwitchDirection()
Declaration
public virtual void SwitchDirection()
ToggleVisibility()
Declaration
public virtual void ToggleVisibility()
ToggleVisibility(Boolean)
Declaration
public static void ToggleVisibility(bool visible)
Parameters
Type |
Name |
Description |
System.Boolean |
visible |
|
Declaration
protected virtual void UpdateColor(Color color)
Parameters
Type |
Name |
Description |
System.Windows.Media.Color |
color |
|
Events
OnDirectionChanged
Declaration
public event EventHandler OnDirectionChanged
Event Type
Type |
Description |
System.EventHandler |
|
OnEnableChanged
Declaration
public event EventHandler OnEnableChanged
Event Type
Type |
Description |
System.EventHandler |
|
OnMotorsVisibilityChanged
Declaration
public static event Motor.MotorsVisibleEvent OnMotorsVisibilityChanged
Event Type
OnNameChanged
Declaration
public event EventHandler<NameChangedEventArgs> OnNameChanged
Event Type
OnSpeedChanged
Declaration
public event EventHandler OnSpeedChanged
Event Type
Type |
Description |
System.EventHandler |
|
OnStarted
Declaration
public event EventHandler OnStarted
Event Type
Type |
Description |
System.EventHandler |
|
OnStopped
Declaration
public event EventHandler OnStopped
Event Type
Type |
Description |
System.EventHandler |
|
Implements
System.IComparable