
ingenias.editor.entities.SwipeTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sociaalmled Show documentation
Show all versions of sociaalmled Show documentation
A editor for modelling scenarios for PHAT simulator
The newest version!
/**
* Copyright (C) 2010 Jorge J. Gomez-Sanz
*
*
* This file is part of the INGENME tool. INGENME is an open source meta-editor
* which produces customized editors for user-defined modeling languages
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
**/
package ingenias.editor.entities;
import java.util.*;
import ingenias.editor.TypedVector;
public class SwipeTask extends BSimpleTask {
public java.lang.String EndXField;
public ingenias.editor.entities.ESmartPhone TargetSmartphone;
public java.lang.String Description;
public java.lang.String StartYField;
public java.lang.String StartXField;
public java.lang.String EndYField;
public SwipeTask(String id) {
super(id);
this.setHelpDesc("");
this.setHelpRecom("");
}
public java.lang.String getEndXField(){
return EndXField;
}
public void setEndXField(java.lang.String
EndXField){
this.EndXField=EndXField;
}
public ingenias.editor.entities.ESmartPhone getTargetSmartphone(){
return TargetSmartphone;
}
public void setTargetSmartphone(ingenias.editor.entities.ESmartPhone
TargetSmartphone){
this.TargetSmartphone=TargetSmartphone;
}
public java.lang.String getDescription(){
return Description;
}
public void setDescription(java.lang.String
Description){
this.Description=Description;
}
public java.lang.String getStartYField(){
return StartYField;
}
public void setStartYField(java.lang.String
StartYField){
this.StartYField=StartYField;
}
public java.lang.String getStartXField(){
return StartXField;
}
public void setStartXField(java.lang.String
StartXField){
this.StartXField=StartXField;
}
public java.lang.String getEndYField(){
return EndYField;
}
public void setEndYField(java.lang.String
EndYField){
this.EndYField=EndYField;
}
public void fromMap(Map ht){
super.fromMap(ht);
if (ht.get("EndXField")!=null && ht.get("EndXField").equals(""))
this.setEndXField(null);
else
if (ht.get("EndXField")!=null)
this.setEndXField(new java.lang.String(ht.get("EndXField").toString()));
if (ht.get("Description")!=null && ht.get("Description").equals(""))
this.setDescription(null);
else
if (ht.get("Description")!=null)
this.setDescription(new java.lang.String(ht.get("Description").toString()));
if (ht.get("StartYField")!=null && ht.get("StartYField").equals(""))
this.setStartYField(null);
else
if (ht.get("StartYField")!=null)
this.setStartYField(new java.lang.String(ht.get("StartYField").toString()));
if (ht.get("StartXField")!=null && ht.get("StartXField").equals(""))
this.setStartXField(null);
else
if (ht.get("StartXField")!=null)
this.setStartXField(new java.lang.String(ht.get("StartXField").toString()));
if (ht.get("EndYField")!=null && ht.get("EndYField").equals(""))
this.setEndYField(null);
else
if (ht.get("EndYField")!=null)
this.setEndYField(new java.lang.String(ht.get("EndYField").toString()));
}
public void toMap(Map ht){
super.toMap(ht);
//if (this.getEndXField() instanceof String)
if (this.getEndXField()!=null)
ht.put("EndXField",this.getEndXField().toString());
else
ht.put("EndXField","");
//if (this.getDescription() instanceof String)
if (this.getDescription()!=null)
ht.put("Description",this.getDescription().toString());
else
ht.put("Description","");
//if (this.getStartYField() instanceof String)
if (this.getStartYField()!=null)
ht.put("StartYField",this.getStartYField().toString());
else
ht.put("StartYField","");
//if (this.getStartXField() instanceof String)
if (this.getStartXField()!=null)
ht.put("StartXField",this.getStartXField().toString());
else
ht.put("StartXField","");
//if (this.getEndYField() instanceof String)
if (this.getEndYField()!=null)
ht.put("EndYField",this.getEndYField().toString());
else
ht.put("EndYField","");
}
public String toString(){
/*if (this.getId()==null ||
this.getId().toString().equals(""))
return "Please, define the value of field Id";
else
return this.getId().toString();*/
return ""+getId();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy