Project

General

Profile

Revision 9

Added by Willibald K. over 8 years ago

remove support for Qualitative Action Systems, rename UlyssesType to Type

View differences:

TupleType.java
37 37
///////////////////////////////////////////////
38 38
///  Complex Type: TupleType
39 39
///
40
public final class TupleType extends UlyssesType
40
public final class TupleType extends Type
41 41
{
42
	private final LinkedList<UlyssesType> m_innerTypes;
42
	private final LinkedList<Type> m_innerTypes;
43 43

  
44
	public LinkedList<UlyssesType> innerTypes() { return m_innerTypes; }
44
	public LinkedList<Type> innerTypes() { return m_innerTypes; }
45 45

  
46 46
	public TupleType(TypeIdentifier anIdentifier)
47 47
	{
48 48
		super(TypeKind.TupleType, anIdentifier);
49
		m_innerTypes = new LinkedList<UlyssesType>();
49
		m_innerTypes = new LinkedList<Type>();
50 50
	}
51 51

  
52
	public void AddType(UlyssesType aType)
52
	public void AddType(Type aType)
53 53
	{
54 54
		m_innerTypes.addLast(aType);
55 55
	}
......
65 65
	{
66 66
		StringBuilder result = new StringBuilder();
67 67
		result.append("tuple_");
68
		for (UlyssesType inner: m_innerTypes)
68
		for (Type inner: m_innerTypes)
69 69
		{
70 70
			result.append(inner.toString());
71 71
			result.append("_");
......
76 76
	@Override
77 77
	public int valueCount() {
78 78
		int result = 1;
79
		for (final UlyssesType inner: m_innerTypes)
79
		for (final Type inner: m_innerTypes)
80 80
			result *= inner.valueCount();
81 81
		return result;
82 82
	}

Also available in: Unified diff