package ConceptGraphHigh { public class actionscript_graph_high_Relation { private var fromID:String; //Who makes the relation private var toID:String; //To whom is related private var relation:String; //The content of the relation private var relationExplanation:String; //The explanation of the relation //Creates a relation from fromID to toID public function actionscript_graph_high_Relation(fromID:String, toID: String, relation:String="", relationExplanation:String=""): void { this.fromID = fromID; this.toID = toID; this.relation=relation; this.relationExplanation=relationExplanation; } public function getFromID():String { //Return the origin of the relation return fromID; } public function setFromID(fromID:String):void { //Set the origin of the relation this.fromID=fromID; } public function getToID():String { //Return the destination of the relation return toID; } public function setToID(toID:String):void { //Set the destination of the relation this.toID=toID; } public function getactionscript_graph_high_Relation():String{ //Return the content of the relation return relation; } public function getactionscript_graph_high_RelationExplanation():String{ //Return the explanation of the relation return relationExplanation; } public function setactionscript_graph_high_Relation(relation:String):void { //Set the content of the relation this.relation=relation; } public function setactionscript_graph_high_RelationExplanation(relationExplanation:String):void { //Set the explanation of the relation this.relationExplanation=relationExplanation; } } }