|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.buffalo.fs7.mathlib.MathObject
|
+--edu.buffalo.fs7.mathlib.Argument
|
+--edu.buffalo.fs7.mathlib.GateProperty
Class representing properties of a gate object, like repetitions, parameters for error behavior of gates, parameters for decoherence simulation. The idea is to provide optional additional information for the processing of gates. This class is used to encode gate specific information of circuits into files and their reconstruction.
Properties are added with the command 'gateproperty("gatename", a=123)' and the property object can be handled within the MathObject structure (e.g. save like a variable). The gateproperty object will be called "gatename_property".
Gate| Field Summary | |
protected java.util.Hashtable |
properties
|
| Fields inherited from class edu.buffalo.fs7.mathlib.MathObject |
mathlib |
| Constructor Summary | |
GateProperty(MathObject o)
clone constructor |
|
GateProperty(java.lang.String gate)
creates a new property object |
|
| Method Summary | |
void |
addProperty(java.lang.String property,
Argument value)
adds a property to the property object. |
java.lang.Object |
clone()
clones the GateProperty object |
boolean |
equals(MathObject o)
equality predicate |
java.lang.String |
getGate()
returns the gate to which this property object belongs. |
Argument |
getProperty(java.lang.String property)
returns the complex value of a property specified by the string. |
java.util.Enumeration |
getPropertyKeys()
returns the name of all properties as an enumeration |
Argument |
removeProperty(java.lang.String property)
removes a property of the property object. |
void |
setGate(java.lang.String gate)
sets the gate to which this property object belongs |
java.lang.String |
toParseableString()
returns a parsable sequence of commands representing this property object |
java.lang.String |
toString()
returns the contained properties |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable properties
| Constructor Detail |
public GateProperty(java.lang.String gate)
public GateProperty(MathObject o)
| Method Detail |
public java.lang.Object clone()
clone in class MathObject
public void addProperty(java.lang.String property,
Argument value)
property - the name of the propertyvalue - the complex value of the propertypublic Argument removeProperty(java.lang.String property)
public Argument getProperty(java.lang.String property)
public boolean equals(MathObject o)
equals in class Argumentpublic java.lang.String toString()
toString in class MathObjectedu.buffalo.fs7.mathlib.MathObjectMathObject.toParseableString()public java.lang.String toParseableString()
toParseableString in class MathObjectedu.buffalo.fs7.mathlib.MathObjectMathObject.toString()public void setGate(java.lang.String gate)
public java.lang.String getGate()
public java.util.Enumeration getPropertyKeys()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||