Class Batch
Represents a batch for a work piece (test item).
Implements
System.ComponentModel.INotifyPropertyChanged
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()
Namespace: Loehnert.TypeAndResult
Assembly: Loehnert.TypeAndResult.dll
Syntax
public class Batch : EntityBase, INotifyPropertyChanged, ITrackable, IEquatable<Batch>, ICanApplyID<Batch>
Constructors
Batch(String)
Initializes a new instance of the Batch class.
Declaration
public Batch(string identifier)
Parameters
Type | Name | Description |
---|---|---|
String | identifier | Identifier for the batch. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
Identifier
Gets the identifier.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
String |
Parameters
Gets the additional parameters.
Declaration
public virtual EntityCollection<BatchParameter> Parameters { get; }
Property Value
Type | Description |
---|---|
EntityCollection<BatchParameter> |
WorkPieces
Gets the work pieces to which the batch belongs.
Declaration
public virtual ObservableCollection<WorkPiece> WorkPieces { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<WorkPiece> |
Methods
ApplyID(Batch)
Copies the ID and the IDs of the Parameters
from source
to this.
Declaration
public void ApplyID(Batch source)
Parameters
Type | Name | Description |
---|---|---|
Batch | source | Source object. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when this doesn't equals with |
Equals(Batch)
Indicates whether the current object is equal to another object of the same type. Depends on the Identifier and the Parameters Equals(BatchParameter).
Declaration
public bool Equals(Batch other)
Parameters
Type | Name | Description |
---|---|---|
Batch | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean | true if the current object is equal to the |
Implements
System.ComponentModel.INotifyPropertyChanged