Example #1
0
        /**
         * Constructor.
         * @param set_bits integer representation of the bits which are set
         * @param value_bits integer representation of the value bits
         */
        public APMonom(int set_bits, int value_bits)
        {
            //added by ly
            bits_set   = new SimpleBitSet();
            bits_value = new SimpleBitSet();

            bits_set.set(set_bits);
            bits_value.set(value_bits);
        }
Example #2
0
        /**
         * Constructor.
         */
        public APMonom()
        {
            //added by ly
            bits_set   = new SimpleBitSet();
            bits_value = new SimpleBitSet();

            //APMonmType = APMonmType.TRUE;
            bits_set.set(0);
            bits_value.set(0);
        }
Example #3
0
		/// <summary>
		/// 将当前的修改标识填充到toBitSet�?
		/// </summary>
		/// <param name="toBitSet"> </param>
		/// <returns> false,如果当前的属性没有修�?true,当前的属性有修改,并且已经将对应的值设置到toBitSet�? </returns>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: public boolean fillChangedBit(final SimpleBitSet toBitSet)
		public virtual bool fillChangedBit(SimpleBitSet toBitSet)
		{
			if (this.bitSet.Empty)
			{
				return false;
			}
			else
			{
				toBitSet.or(this.bitSet);
				return true;
			}
		}
Example #4
0
 public override void CopyHolderWaitListsInto(SimpleBitSet waitList)
 {
     foreach (AtomicReferenceArray <ForsetiClient> holders in _clientsHoldingThisLock)
     {
         for (int j = 0; holders != null && j < holders.length(); j++)
         {
             ForsetiClient client = holders.get(j);
             if (client != null)
             {
                 client.CopyWaitListTo(waitList);
             }
         }
     }
 }
Example #5
0
 public override void CopyHolderWaitListsInto(SimpleBitSet waitList)
 {
     _owner.copyWaitListTo(waitList);
 }
Example #6
0
 /** Copy constructor */
 public APElement(SimpleBitSet sbs) : base(sbs.bitset)
 {
 }
Example #7
0
 internal virtual void CopyWaitListTo(SimpleBitSet other)
 {
     other.Put(_waitList);
 }
Example #8
0
		public AbstractProperty(int bitSize)
		{
			this.bitSet = new SimpleBitSet(bitSize);
		}