public void SetObjectiveUpperRestrictor(ESAPIX.Facade.API.TradeoffObjective tradeoffObjective, System.Double restrictorValue) { if ((XC.Instance) != (null)) { XC.Instance.Invoke(() => { _client.SetObjectiveUpperRestrictor(tradeoffObjective._client, restrictorValue); } ); } else { _client.SetObjectiveUpperRestrictor(tradeoffObjective, restrictorValue); } }
public void SetObjectiveCost(ESAPIX.Facade.API.TradeoffObjective tradeoffObjective, System.Double cost) { if ((XC.Instance) != (null)) { XC.Instance.Invoke(() => { _client.SetObjectiveCost(tradeoffObjective._client, cost); } ); } else { _client.SetObjectiveCost(tradeoffObjective, cost); } }
public System.Boolean RemoveTradeoffObjective(ESAPIX.Facade.API.TradeoffObjective tradeoffObjective) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.RemoveTradeoffObjective(tradeoffObjective._client)); if (fromClient.Equals(default(System.Boolean))) { return(default(System.Boolean)); } return((System.Boolean)(fromClient)); } )); return(vmsResult); } else { return((System.Boolean)(_client.RemoveTradeoffObjective(tradeoffObjective))); } }
public System.Double GetObjectiveUpperRestrictor(ESAPIX.Facade.API.TradeoffObjective objective) { if ((XC.Instance) != (null)) { var vmsResult = (XC.Instance.GetValue(sc => { var fromClient = (_client.GetObjectiveUpperRestrictor(objective._client)); if (fromClient.Equals(default(System.Double))) { return(default(System.Double)); } return((System.Double)(fromClient)); } )); return(vmsResult); } else { return((System.Double)(_client.GetObjectiveUpperRestrictor(objective))); } }
public System.Double GetObjectiveLowerLimit(ESAPIX.Facade.API.TradeoffObjective objective) { if ((XC.Instance.CurrentContext) != (null)) { var vmsResult = (XC.Instance.CurrentContext.GetValue(sc => { var fromClient = (_client.GetObjectiveLowerLimit(objective._client)); if (fromClient.Equals(default(System.Double))) { return(default(System.Double)); } return((System.Double)(fromClient)); } )); return(vmsResult); } else { return((System.Double)(_client.GetObjectiveLowerLimit(objective))); } }