colin29/mai

Remove Entry Class and Add Instances.

Closed this issue · 1 comments

-Remove Entry Class.
-Store a list of instances and Common Nouns instead.

Instances and all the fields
Ensure that the constructor for instances and common nouns initializes all the needed fields.

Common Noun. [x]
// implied to be a thing, btw.
-title
-list of relations.
-extra string info

Instance [x]
-title
-listOfRelations
-instanceOf : string. The empty string "" holds the meaning that the instance doesn't inherit anything, and is just treated as an arbitrary single something, such as the Earth when the concept of a place or planet doesn't exist yet.
-extra string info

Getter Functions
public: getInstance()...
In general, because many of these fields are private (in fact they are not intended to change after initialization), they will need getter functions.

Storage Class:
-list of CNouns
-list of Instances.
-provides the function getNoun(Instance) to get the CNoun of an Instance.

/// Just make sure it compile, don't worry about using until finishing #2

This issue is done. Though, Relation still needs proper constructors and fields. Will deal with that in #2 .