// w is a parameter and y is a variable public IConstraints5UConstraintElement Create( IjIndexElement jIndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, Interfaces.Parameters.SurgicalSpecialtyNumberAssignedTimeBlocks.IB BBar, Interfaces.Parameters.SurgeonNumberAssignedTimeBlocks.IB Bs, Interfaces.Parameters.SurgicalSpecialtyOperatingRoomAssignments.Iw w, Interfaces.Variables.Iy y) { IConstraints5UConstraintElement constraintElement = null; try { constraintElement = new Constraints5UConstraintElement( jIndexElement, rIndexElement, sIndexElement, BBar, Bs, w, y); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(constraintElement); }
public SurgicalSpecialtyNumberAssignedWeekdaysResultElement( IjIndexElement jIndexElement, int value) { this.jIndexElement = jIndexElement; this.Value = value; }
public SurgicalSpecialtyNumberAssignedOperatingRoomsResultElement( IjIndexElement jIndexElement, int value) { this.jIndexElement = jIndexElement; this.Value = value; }
public BResultElement( IjIndexElement jIndexElement, int value) { this.jIndexElement = jIndexElement; this.Value = value; }
public BParameterElement( IjIndexElement jIndexElement, PositiveInt value) { this.jIndexElement = jIndexElement; this.Value = value; }
public int GetElementAtAsint( IjIndexElement jIndexElement) { return(this.Value .Where(x => x.jIndexElement == jIndexElement) .Select(x => x.Value.Value.Value) .SingleOrDefault()); }
public jrCrossJoinElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement) { this.jIndexElement = jIndexElement; this.rIndexElement = rIndexElement; }
public ΔParameterElement( IjIndexElement jIndexElement, ImmutableList <IsIndexElement> value) { this.jIndexElement = jIndexElement; this.Value = value; }
public ISurgicalSpecialtyNumberAssignedOperatingRoomsResultElement Calculate( ISurgicalSpecialtyNumberAssignedOperatingRoomsResultElementFactory surgicalSpecialtyNumberAssignedOperatingRoomsResultElementFactory, IjIndexElement jIndexElement, Iw w) { return(surgicalSpecialtyNumberAssignedOperatingRoomsResultElementFactory.Create( jIndexElement, w.Value.Where(i => i.jIndexElement == jIndexElement && i.Value).Select(i => i.rIndexElement).Distinct().Count())); }
public bool IsSurgeonMemberOfSurgicalSpecialty( IjIndexElement jIndexElement, IsIndexElement sIndexElement) { return(this.Value .Where(x => x.jIndexElement == jIndexElement) .Select(x => x.Value) .SingleOrDefault() .Contains(sIndexElement)); }
public wResultElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement, bool value) { this.jIndexElement = jIndexElement; this.rIndexElement = rIndexElement; this.Value = value; }
public srjCrossJoinElement( IsIndexElement sIndexElement, IrIndexElement rIndexElement, IjIndexElement jIndexElement) { this.sIndexElement = sIndexElement; this.rIndexElement = rIndexElement; this.jIndexElement = jIndexElement; }
public wParameterElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement, FhirBoolean value) { this.jIndexElement = jIndexElement; this.rIndexElement = rIndexElement; this.Value = value; }
// Constructor: w and y are both parameters (x00) public Constraints5UConstraintElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, Interfaces.Parameters.SurgicalSpecialtyNumberAssignedTimeBlocks.IB BBar, Interfaces.Parameters.SurgeonNumberAssignedTimeBlocks.IB Bs, Interfaces.Parameters.SurgicalSpecialtyOperatingRoomAssignments.Iw w, Interfaces.Parameters.SurgeonOperatingRoomAssignments.Iy y) { // Not needed }
public bool GetElementAt( IjIndexElement jIndexElement, IrIndexElement rIndexElement) { bool value = false; if (this.Value[jIndexElement, rIndexElement].Value.IsAlmost(1)) { value = true; } return(value); }
public IjIndexElement GetSurgicalSpecialtyOfSurgeon( IsIndexElement sIndexElement) { IjIndexElement value = null; foreach (IΔParameterElement ΔParameterElement in this.Value) { if (this.IsSurgeonMemberOfSurgicalSpecialty( ΔParameterElement.jIndexElement, sIndexElement)) { value = ΔParameterElement.jIndexElement; } } return(value); }
public IjIndexElement Create( Organization value) { IjIndexElement indexElement = null; try { indexElement = new jIndexElement( value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(indexElement); }
public ISurgicalSpecialtyNumberAssignedWeekdaysResultElement Create( IjIndexElement jIndexElement, int value) { ISurgicalSpecialtyNumberAssignedWeekdaysResultElement resultElement = null; try { resultElement = new SurgicalSpecialtyNumberAssignedWeekdaysResultElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(resultElement); }
public IΔParameterElement Create( IjIndexElement jIndexElement, ImmutableList <IsIndexElement> value) { IΔParameterElement parameterElement = null; try { parameterElement = new ΔParameterElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace); } return(parameterElement); }
public IjIndexElement Create( Organization value) { IjIndexElement indexElement = null; try { indexElement = new jIndexElement( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(indexElement); }
public Constraints5UConstraintElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, Interfaces.Parameters.SurgicalSpecialtyNumberAssignedTimeBlocks.IB BBar, Interfaces.Parameters.SurgeonNumberAssignedTimeBlocks.IB Bs, Iw w, Iy y) { Expression LHS = Bs.GetElementAtAsint( sIndexElement) * y.Value[sIndexElement, rIndexElement]; Expression RHS = BBar.GetElementAtAsint( jIndexElement) * w.Value[jIndexElement, rIndexElement]; this.Value = LHS <= RHS; }
public IBParameterElement Create( IjIndexElement jIndexElement, PositiveInt value) { IBParameterElement parameterElement = null; try { parameterElement = new BParameterElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(parameterElement); }
public IjrCrossJoinElement Create( IjIndexElement jIndexElement, IrIndexElement rIndexElement) { IjrCrossJoinElement crossJoinElement = null; try { crossJoinElement = new jrCrossJoinElement( jIndexElement, rIndexElement); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(crossJoinElement); }
public ISurgicalSpecialtyNumberAssignedOperatingRoomsResultElement Create( IjIndexElement jIndexElement, int value) { ISurgicalSpecialtyNumberAssignedOperatingRoomsResultElement resultElement = null; try { resultElement = new SurgicalSpecialtyNumberAssignedOperatingRoomsResultElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(resultElement); }
public IBResultElement Create( IjIndexElement jIndexElement, int value) { IBResultElement resultElement = null; try { resultElement = new BResultElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(resultElement); }
public IΔParameterElement Create( IjIndexElement jIndexElement, ImmutableList <IsIndexElement> value) { IΔParameterElement parameterElement = null; try { parameterElement = new ΔParameterElement( jIndexElement, value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(parameterElement); }
public IwParameterElement Create( IjIndexElement jIndexElement, IrIndexElement rIndexElement, FhirBoolean value) { IwParameterElement parameterElement = null; try { parameterElement = new wParameterElement( jIndexElement, rIndexElement, value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(parameterElement); }
// Constructor: w is a variable and y is a parameter (x10) public Constraints5UConstraintElement( IjIndexElement jIndexElement, IrIndexElement rIndexElement, IsIndexElement sIndexElement, Interfaces.Parameters.SurgicalSpecialtyNumberAssignedTimeBlocks.IB BBar, Interfaces.Parameters.SurgeonNumberAssignedTimeBlocks.IB Bs, Interfaces.Parameters.SurgeonOperatingRoomAssignments.Iy y, Interfaces.Variables.Iw w) { int LHS = Bs.GetElementAtAsint( sIndexElement) * y.GetElementAtAsint( sIndexElement, rIndexElement); Expression RHS = BBar.GetElementAtAsint( jIndexElement) * w.Value[jIndexElement, rIndexElement]; this.Value = LHS <= RHS; }