//generated Class Ausdruck
// Do not edit outside marked user editing areas (UEA)


//------------------------------------------>UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kc2(ZK[(dgo
//RCS-generated log goes here. Do not edit this UEA
//$Log: Ausdruck.js,v $
//Revision 1.1  2003-04-16 14:59:12+02  bh
//<>
//
//Revision 1.0  2001-06-06 09:47:31+02  bh
//Initial revision
//
//<------------------------------------------UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kc2(ZK[(dgo


/*
* .<!>
*<P>
*@author $Author: bh $.<!>
*@version $Revision: 1.1 $
*/
//static attributes

//designed operations
	function Ausdruck_toString () {

//------------------------------------------>UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kc(|g[|zafo( !
		var result = "Ein";
		if(this.substantivPostfix.getSex().theValue == Geschlecht_sie) result += "e";
		if(this.komplikations.length > 0) {
			result += " " + this.komplikations[0].toString();
		}
		result += " " + this.adjektivPrefix.toString(false).toLowerCase() + this.adjektivPostfix.toString(this.substantivPostfix.getSex());
		result += " " + this.substantivPrefix.toString(false) + this.substantivPostfix.toString(true);
		return result;
//<------------------------------------------UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kc(|g[|zafo( !
	}

//constructor
	function Ausdruck( complicated,  thatMood) {
//methods
		this.toString = Ausdruck_toString;
//associations
		this.komplikations = new Array();
		this.adjektivPostfix = 0;
		this.adjektivPrefix = 0;
		this.substantivPrefix = 0;
		this.substantivPostfix = 0;
		this.theStimmung = 0;
//attributes

//------------------------------------------>UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kcWKgf{|z}k|gz
		this.theStimmung = thatMood;
		var found = false;
		var tries = 0;
		while(!found && tries < 100) {
			tries++;
			this.adjektivPrefix = PsychoFactory_getFactory().get("subF").getAnyForTheme(this.theStimmung.getAdjektivPrefix());
			this.adjektivPostfix = PsychoFactory_getFactory().get("adF").getAnyForTheme(this.theStimmung.getAdjektivPostfix());
			this.substantivPrefix = PsychoFactory_getFactory().get("subF").getAnyForTheme(this.theStimmung.getSubstantivPrefix());
			this.substantivPostfix = PsychoFactory_getFactory().get("subF").getAnyForTheme(this.theStimmung.getSubstantivPostfix());
			found = this.adjektivPrefix != this.substantivPrefix &&
				this.substantivPrefix != this.substantivPostfix &&
				this.substantivPostfix != this.adjektivPrefix;
		}
		if(complicated) {
			this.komplikations[0] = PsychoFactory_getFactory().get("relF").getAny();
		}
//<------------------------------------------UEAlm&mpxmz|mie&j}dd{`a|&I}{lz}kcWKgf{|z}k|gz
	}