private BaseActor CreateActor(System.String actorNameString) { BaseActor actor = null; ActorNameEnum actorName = ActorNames.NameEnum(actorNameString); switch (actorName) { case ActorNameEnum.AdtPatientRegistration: actor = new AdtPatientRegistrationActor(_actorsTransactionLog); break; case ActorNameEnum.OrderPlacer: actor = new OrderPlacerActor(_actorsTransactionLog); break; case ActorNameEnum.DssOrderFiller: actor = new DssOrderFillerActor(_actorsTransactionLog); break; case ActorNameEnum.AcquisitionModality: actor = new AcquisitionModalityActor(_actorsTransactionLog); break; case ActorNameEnum.ImageManager: actor = new ImageManagerActor(_actorsTransactionLog); break; case ActorNameEnum.ImageArchive: actor = new ImageArchiveActor(_actorsTransactionLog); break; case ActorNameEnum.PerformedProcedureStepManager: actor = new PpsManagerActor(_actorsTransactionLog); break; case ActorNameEnum.EvidenceCreator: actor = new EvidenceCreatorActor(_actorsTransactionLog); break; // case ActorNameEnum.ReportManager: // actor = new ReportManagerActor(_actorsTransactionLog); // break; case ActorNameEnum.PrintComposer: actor = new PrintComposerActor(_actorsTransactionLog); break; case ActorNameEnum.PrintServer: actor = new PrintServerActor(_actorsTransactionLog); break; case ActorNameEnum.Unknown: default: break; } return(actor); }
/// <summary> /// Determines whether the <see cref="ActorCollection"/> contains a specific element. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param> /// <returns> /// <c>true</c> if the <see cref="ActorCollection"/> contains the specified value; /// otherwise, <c>false</c>. /// </returns> public bool Contains(BaseActor value) { // If value is not of type Code, this will return false. return(List.Contains(value)); }
/// <summary> /// Removes the first occurrence of a specific <see cref="BaseActor"/> from the <see cref="ActorCollection"/>. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to remove from the <see cref="ActorCollection"/>.</param> public void Remove(BaseActor value) { List.Remove(value); }
/// <summary> /// Inserts an <see cref="BaseActor"/> element into the <see cref="ActorCollection"/> at the specified index. /// </summary> /// <param name="index">The zero-based index at which value should be inserted.</param> /// <param name="value">The <see cref="BaseActor"/> to insert.</param> public void Insert(int index, BaseActor value) { List.Insert(index, value); }
public DicomServer(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName) { }
public DicomClient(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName) { _scu = new DicomScu(this); }
public BaseServer(BaseActor parentActor, ActorNameEnum actorName) { _parentActor = parentActor; _actorName = actorName; }
public BaseClient(BaseActor parentActor, ActorNameEnum actorName) { _parentActor = parentActor; _actorName = actorName; }
/// <summary> /// Copies the elements of the <see cref="ICollection"/> to a strong-typed <c>BaseActor[]</c>, /// starting at a particular <c>BaseActor[]</c> index. /// </summary> /// <param name="array"> /// The one-dimensional <c>BaseActor[]</c> that is the destination of the elements /// copied from <see cref="ICollection"/>. /// The <c>BaseActor[]</c> must have zero-based indexing. /// </param> /// <param name="index"> /// The zero-based index in array at which copying begins. /// </param> /// <remarks> /// Provides the strongly typed member for <see cref="ICollection"/>. /// </remarks> public void CopyTo(BaseActor[] array, int index) { ((ICollection)this).CopyTo(array, index); }
public DicomStorageCommitServer(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName) { // set up the Query/Retrieve information models _informationModels = new QueryRetrieveInformationModels(); }
/// <summary> /// Determines whether the <see cref="ActorCollection"/> contains a specific element. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param> /// <returns> /// <c>true</c> if the <see cref="ActorCollection"/> contains the specified value; /// otherwise, <c>false</c>. /// </returns> public bool Contains(BaseActor value) { // If value is not of type Code, this will return false. return (List.Contains(value)); }
/// <summary> /// Adds an object to the end of the <see cref="ActorCollection"/>. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to be added to the end of the <see cref="ActorCollection"/>.</param> /// <returns>The <see cref="ActorCollection"/> index at which the value has been added.</returns> public int Add(BaseActor value) { return (List.Add(value)); }
public Hl7Client(BaseActor parentActor, ActorNameEnum actorName, Hl7Config config) : base(parentActor, actorName) { _config = config; }
public DicomMppsServer(BaseActor parentActor, ActorNameEnum actorName) : base(parentActor, actorName) { }
/// <summary> /// Adds an object to the end of the <see cref="ActorCollection"/>. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to be added to the end of the <see cref="ActorCollection"/>.</param> /// <returns>The <see cref="ActorCollection"/> index at which the value has been added.</returns> public int Add(BaseActor value) { return(List.Add(value)); }
public void LoadConfiguration(System.String configurationFilename) { XmlTextReader reader = new XmlTextReader(configurationFilename); while (reader.EOF == false) { reader.ReadStartElement("IheIntegrationProfile"); _profileName = reader.ReadElementString("IntegrationProfileName"); while (reader.IsStartElement()) { reader.ReadStartElement("IheActorConfiguration"); System.String actorNameString = reader.ReadElementString("ActorName"); BaseActor actor = CreateActor(actorNameString); ActorConfig actorConfig = new ActorConfig(actor.ActorName); while (reader.IsStartElement()) { reader.ReadStartElement("PeerIheActorDicomConfiguration"); System.String peerActorNameString = reader.ReadElementString("ActorName"); ActorNameEnum peerActorName = ActorNames.NameEnum(peerActorNameString); DicomConfig dicomConfig = new DicomConfig(peerActorName); dicomConfig.SessionId = UInt16.Parse(reader.ReadElementString("SessionId")); reader.ReadStartElement("DvtNode"); dicomConfig.DvtAeTitle = reader.ReadElementString("AeTitle"); dicomConfig.DvtIpAddress = reader.ReadElementString("IpAddress"); dicomConfig.DvtPortNumber = UInt16.Parse(reader.ReadElementString("PortNumber")); reader.ReadEndElement(); reader.ReadStartElement("SutNode"); dicomConfig.SutAeTitle = reader.ReadElementString("AeTitle"); dicomConfig.SutIpAddress = reader.ReadElementString("IpAddress"); dicomConfig.SutPortNumber = UInt16.Parse(reader.ReadElementString("PortNumber")); reader.ReadEndElement(); dicomConfig.DataDirectory = reader.ReadElementString("DataDirectory"); System.String storeData = reader.ReadElementString("StoreData"); if (storeData == "True") { dicomConfig.StoreData = true; } else { dicomConfig.StoreData = false; } reader.ReadStartElement("DefinitionFiles"); bool readingDefinitions = true; while (readingDefinitions == true) { dicomConfig.AddDefinitionFile(reader.ReadElementString("DefinitionFile")); reader.Read(); if ((reader.NodeType == XmlNodeType.EndElement) && (reader.Name == "DefinitionFiles")) { reader.Read(); readingDefinitions = false; } } dicomConfig.ResultsRootDirectory = reader.ReadElementString("ResultsRootDirectory"); _resultsDirectory = dicomConfig.ResultsRootDirectory; reader.ReadEndElement(); actorConfig.Add(dicomConfig); } reader.ReadEndElement(); actor.ConfigActor(actorConfig); _actors.Add(actor); } reader.ReadEndElement(); } reader.Close(); }
/// <summary> /// Searches for the specified <see cref="BaseActor"/> and /// returns the zero-based index of the first occurrence within the entire <see cref="ActorCollection"/>. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param> /// <returns> /// The zero-based index of the first occurrence of value within the entire <see cref="ActorCollection"/>, /// if found; otherwise, -1. /// </returns> public int IndexOf(BaseActor value) { return(List.IndexOf(value)); }
/// <summary> /// Searches for the specified <see cref="BaseActor"/> and /// returns the zero-based index of the first occurrence within the entire <see cref="ActorCollection"/>. /// </summary> /// <param name="value">The <see cref="BaseActor"/> to locate in the <see cref="ActorCollection"/>.</param> /// <returns> /// The zero-based index of the first occurrence of value within the entire <see cref="ActorCollection"/>, /// if found; otherwise, -1. /// </returns> public int IndexOf(BaseActor value) { return (List.IndexOf(value)); }