DRCL J-Sim API

drcl.data
Class BooleanObj

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.data.BooleanObj
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable

public class BooleanObj
extends DrclObj

Class that is similar to Boolean but is mutable.

See Also:
Serialized Form

Field Summary
 boolean value
           
 
Constructor Summary
BooleanObj()
           
BooleanObj(boolean v)
           
 
Method Summary
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 boolean equals(java.lang.Object o)
           
 boolean flip()
          Flips the boolean value and returns the new one.
 boolean getValue()
           
 int hashCode()
           
 void setValue(boolean v)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public boolean value
Constructor Detail

BooleanObj

public BooleanObj()

BooleanObj

public BooleanObj(boolean v)
Method Detail

setValue

public void setValue(boolean v)

getValue

public boolean getValue()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

duplicate

public void duplicate(java.lang.Object source_)
Description copied from class: DrclObj
opies the content of the source_ object to this object. he subclass must implement this method to realize DrclObj.clone().

Specified by:
duplicate in interface ObjectDuplicable
Overrides:
duplicate in class DrclObj

flip

public boolean flip()
Flips the boolean value and returns the new one.


toString

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

DRCL J-Sim API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~