Ejemplo n.º 1
0
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processConnectionControl(this));
 }
Ejemplo n.º 3
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveEllipticalArcClose(this, parameter);
 }
Ejemplo n.º 4
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 5
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processProducerAck(this);
 }
Ejemplo n.º 6
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processBrokerInfo(this);
 }
Ejemplo n.º 7
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptControlAuxiliaryColor(this, parameter);
 }
Ejemplo n.º 8
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processReplayCommand(this);
 }
Ejemplo n.º 9
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processAddSession(this));
 }
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptMetafileDescriptorCharacterCodingAnnouncer(this, parameter);
 }
Ejemplo n.º 11
0
 public void Accept(ICommandVisitor visitor)
 {
     visitor.Visit(this);
 }
Ejemplo n.º 12
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptPictureDescriptorColorSelectionMode(this, parameter);
 }
Ejemplo n.º 13
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeTextPath(this, parameter);
 }
Ejemplo n.º 14
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageDispatchNotification(this);
 }
Ejemplo n.º 15
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessConnectionError(this));
 }
Ejemplo n.º 16
0
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processWireFormat(this);
 }
Ejemplo n.º 17
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentClipInheritance(this, parameter);
 }
Ejemplo n.º 18
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(type)
     {
         case TransactionInfo.BEGIN:
             return visitor.processBeginTransaction(this);
         case TransactionInfo.END:
             return visitor.processEndTransaction(this);
         case TransactionInfo.PREPARE:
             return visitor.processPrepareTransaction(this);
         case TransactionInfo.COMMIT_ONE_PHASE:
             return visitor.processCommitTransactionOnePhase(this);
         case TransactionInfo.COMMIT_TWO_PHASE:
             return visitor.processCommitTransactionTwoPhase(this);
         case TransactionInfo.ROLLBACK:
             return visitor.processRollbackTransaction(this);
         case TransactionInfo.RECOVER:
             return visitor.processRecoverTransactions(this);
         case TransactionInfo.FORGET:
             return visitor.processForgetTransaction(this);
         default:
             throw new IOException("Transaction info type unknown: " + type);
     }
 }
Ejemplo n.º 19
0
 public override TResult Visit <TArg, TResult>(ICommandVisitor <TArg, TResult> visitor, TArg arg)
 {
     return(visitor.VisitLetCommand(this, arg));
 }
Ejemplo n.º 20
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processRemoveSubscriptionInfo(this);
 }
Ejemplo n.º 21
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginApplicationStructureBody(this, parameter);
 }
Ejemplo n.º 22
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageAck(this);
 }
Ejemplo n.º 23
0
 public override Task <Result> Accept(ICommandVisitor visitor)
 {
     return(visitor.Visit(this));
 }
Ejemplo n.º 24
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginCompoundTextPath(this, parameter);
 }
Ejemplo n.º 25
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processBrokerInfo(this));
 }
Ejemplo n.º 26
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processShutdownInfo(this));
 }
Ejemplo n.º 27
0
 public void AcceptVisitor(ICommandVisitor visitor) => visitor.Visit(this);
Ejemplo n.º 28
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processReplayCommand(this));
 }
Ejemplo n.º 29
0
 public T AcceptVisitor <T>(ICommandVisitor <T> visitor) => visitor.Visit(this);
Ejemplo n.º 30
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(objectId.GetDataStructureType())
     {
         case ConnectionId.ID_CONNECTIONID:
             return visitor.processRemoveConnection((ConnectionId) objectId);
         case SessionId.ID_SESSIONID:
             return visitor.processRemoveSession((SessionId) objectId);
         case ConsumerId.ID_CONSUMERID:
             return visitor.processRemoveConsumer((ConsumerId) objectId);
         case ProducerId.ID_PRODUCERID:
             return visitor.processRemoveProducer((ProducerId) objectId);
         default:
             throw new IOException("Unknown remove command type: " + objectId.GetDataStructureType());
     }
 }
Ejemplo n.º 31
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeCharacterOrientation(this, parameter);
 }
Ejemplo n.º 32
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     if(IsAddOperation)
     {
     return visitor.processAddDestination(this);
     }
     else if(IsRemoveOperation)
     {
     return visitor.processRemoveDestination(this);
     }
     throw new IOException("Unknown operation type: " + OperationType);
 }
Ejemplo n.º 33
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processMessageDispatch(this));
 }
Ejemplo n.º 34
0
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
Ejemplo n.º 35
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginMetafile(this, parameter);
 }
Ejemplo n.º 36
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processKeepAliveInfo(this);
 }
Ejemplo n.º 37
0
 public override T Accept <T>(ICommandVisitor <T> visitor)
 {
     return(visitor.Visit(this));
 }
Ejemplo n.º 38
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processShutdownInfo(this);
 }
Ejemplo n.º 39
0
 public CommandVisitorPipe(ICommandVisitor visitor)
 {
     this.visitor = visitor;
 }
Ejemplo n.º 40
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processAddConnection( this );
 }
Ejemplo n.º 41
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessAddConsumer(this));
 }
Ejemplo n.º 42
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 43
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessKeepAliveInfo(this));
 }
Ejemplo n.º 44
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processConsumerControl(this);
 }
Ejemplo n.º 45
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentSegmentDisplayPriority(this, parameter);
 }
Ejemplo n.º 46
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     visitor.Accept(this);
 }
Ejemplo n.º 47
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveCircle(this, parameter);
 }