/// Constructor of the RobotHear class. The objective is to create a instance for a sound perception. /// The instant parameter represens the exact moment of the sound capture. /// The pos parameter represents the position of an unknow object responsible to produce the sound. /// The kind defines the kind of the sound. /// The volume parameter defines the sound volume. /// The detail parameter defines additional information associated with the sound, for example, if kind is MARIANA_VOICE then the detail represents the sentence said. public RobotHear(DateTime instant, CartesianPos pos, HearingAttribute kind, double volume, string detail) { long countEv = getEventCount(); // get a unique identifier for position and color // to create a Sparql command for generate the position information // sPosition = string.Format(SparqlAccess.INSERT_POSITION_LOCAL, countEv, pos.cartesianX, pos.cartesianY, pos.cartesianZ); // to create a Sparql command for generate the hear information sHear = string.Format(SparqlAccess.INSERT_HEAR_POS, countEv, instant.ToString(SparqlAccess.XSD_DATETIME), volume, kind, detail); }
/// Constructor of the RobotTouch class. The objective is to create a instance for a touch perception. /// The instant parameter represens the exact moment of the touch capture. /// The pos parameter represents the position of an unknow object responsible to produce the touch perception. /// The hardness, moisture, pressure, roughness and temperature represent specific caractheristics of the touch perception. public RobotTouch(DateTime instant, CartesianPos pos, double hard, double mois, double press, double rough, double temp) { long countEv = getEventCount(); // get a unique identifier for position and color // to create a Sparql command for generate the position information // sPosition = string.Format(SparqlAccess.INSERT_POSITION_LOCAL, countEv, pos.cartesianX, pos.cartesianY, pos.cartesianZ); // to create a Sparql command for generate the touch information sTouch = string.Format(SparqlAccess.INSERT_TOUCH_POS, countEv, instant.ToString(SparqlAccess.XSD_DATETIME), temp, hard, mois, rough, press); }
/// Constructor of the RobotSmell class. The objective is to create a instance for a odor perception. /// The instant parameter represens the exact moment of the odor capture. /// The pos parameter represents the position of an unknow object responsible to produce the the smell. /// The odor parameter identifies the odor. public RobotSmell(DateTime instant, CartesianPos pos, OlfactoryAttribute odor) { long countEv = getEventCount(); // get a unique identifier for position and color // to create a Sparql command for generate the position information // sPosition = string.Format(SparqlAccess.INSERT_POSITION_LOCAL, countEv, pos.cartesianX, pos.cartesianY, pos.cartesianZ); // to create a Sparql command for generate the olfatory information sSmell = string.Format(SparqlAccess.INSERT_SMELL_POS, countEv, instant.ToString(SparqlAccess.XSD_DATETIME), odor); }
/// Constructor of the RobotSmell class. The objective is to create a instance for a odor perception. /// The instant parameter represens the exact moment of the odor capture. /// The pos parameter represents the position of an unknow object responsible to produce the the smell. /// The odor parameter identifies the odor. public RobotSmell(DateTime instant, CartesianPos pos, OdorComposition odor) { long countEv = getEventCount(); // get a unique identifier for position and color // to create a Sparql command for generate the position information // sPosition = string.Format(SparqlAccess.INSERT_POSITION_LOCAL, countEv, pos.cartesianX, pos.cartesianY, pos.cartesianZ); // to create a Sparql command for generate the olfatory information sSmell = string.Format(SparqlAccess.INSERT_SMELL_POS, countEv, instant.ToString(SparqlAccess.XSD_DATETIME), odor.chemicalLevel, odor.decayedLevel, odor.fragrantLevel, odor.fruityLevel, odor.lemonLevel, odor.mintyLevel, odor.popcornLevel, odor.pungentLevel, odor.sweetLevel, odor.woodyLevel); }