Class Choice


  • public class Choice
    extends java.lang.Object
    A choice is a list of nodes (from which to choose one) or a single node (to choose whether to execute that node or not).
    Author:
    sander
    • Field Summary

      Fields 
      Modifier and Type Field Description
      gnu.trove.list.TIntList ids  
      gnu.trove.set.TIntSet nodes  
    • Constructor Summary

      Constructors 
      Constructor Description
      Choice()  
    • Field Detail

      • nodes

        public gnu.trove.set.TIntSet nodes
      • ids

        public gnu.trove.list.TIntList ids
    • Constructor Detail

      • Choice

        public Choice()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(IvMModel model)
        Human-readable string.
        Parameters:
        model -
        Returns:
      • node2string

        public static java.lang.String node2string​(IvMModel model,
                                                   int node)
      • getId

        public java.lang.String getId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object