2using System.Collections.Generic;
5using System.ServiceModel.Description;
7using System.Threading.Tasks;
16 object m_sync =
new object();
26 (binding == null) ? new NetNamedPipeBinding() : binding, new EndpointAddress(
"net.pipe://localhost/MyCaffeGym/gymui")))
37 public int OpenUi(
string strName,
int nId,
bool bStartRecording =
false)
40 return Channel.OpenUi(strName, nId, bStartRecording);
70 Channel.Render(nId, obs);
85 return Channel.IsOpen(nId);
The MyCaffeGymUiProxy is used to interact with the MyCaffeGymUiService.
int OpenUi(string strName, int nId, bool bStartRecording=false)
Open the Gym user interface.
void Render(int nId, Observation obs)
Render the observation of the Gym.
MyCaffeGymUiProxy(InstanceContext ctx, NetNamedPipeBinding binding=null)
The constructor.
bool IsOpen(int nId)
Returns whether or not the Gym user interface is visible or not.
void CloseUi(int nId)
Closes the Gym user interface.
The Observation contains data describing the Gym as it runs.
The IXMYCaffeGymUiService interface provides access to the MyCaffeGymUiService used to display the vi...
The MyCaffe.gym namespace contains all classes related to the Gym's supported by MyCaffe.