Class Exchanging

java.lang.Object
io.odysz.anson.Anson
io.odysz.semantic.syn.Exchanging
All Implemented Interfaces:
io.odysz.anson.IJsonable

public class Exchanging extends io.odysz.anson.Anson
  server                      client
 ready                       ready
                             exchanging [initexchange()]
 exchanging [onExchange()]
                             confirming [ack()]
 confirming [onAck()]
                             ready [#closexchange()]
 ready [onclose()]
 
Author:
Ody
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.odysz.anson.IJsonable

    io.odysz.anson.IJsonable.JsonableFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    int
     

    Fields inherited from class io.odysz.anson.Anson

    verbose
  • Constructor Summary

    Constructors
    Constructor
    Description
    Exchanging(int server0_client1)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    ack()
     
    int
    can(int exp)
    Test the exp state is the right next state.
    int
    can(int exp, ExessionPersist xp)
     
    int
     
    int
     
     
    static String
    name(int s)
     
    int
     
    int
     
    int
     
     

    Methods inherited from class io.odysz.anson.Anson

    appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toBlock, toEnvelope, toJson, toJson, toMapBlock, unescape

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.odysz.anson.IJsonable

    toBlock
  • Field Details

  • Constructor Details

    • Exchanging

      public Exchanging(int server0_client1)
  • Method Details

    • initexchange

      public int initexchange()
    • onExchange

      public int onExchange()
    • ack

      public int ack()
    • onAck

      public int onAck()
    • close

      public int close()
    • onclose

      public int onclose()
    • name

      public String name()
    • name

      public static String name(int s)
    • toString

      public String toString()
      Overrides:
      toString in class io.odysz.anson.Anson
    • can

      public int can(int exp) throws ExchangeException
      Test the exp state is the right next state.
      Parameters:
      exp -
      Returns:
      current state
      Throws:
      ExchangeException - expecting state if exp is not the right one.
    • can

      public int can(int exp, ExessionPersist xp) throws ExchangeException
      Throws:
      ExchangeException